Search in sources :

Example 6 with DirectoryFactory

use of org.apache.jackrabbit.oak.plugins.index.lucene.directory.DirectoryFactory in project jackrabbit-oak by apache.

the class OutOfBandIndexer method createLuceneEditorProvider.

private IndexEditorProvider createLuceneEditorProvider() throws IOException {
    LuceneIndexHelper luceneIndexHelper = indexHelper.getLuceneIndexHelper();
    DirectoryFactory dirFactory = new FSDirectoryFactory(getLocalIndexDir());
    luceneIndexHelper.setDirectoryFactory(dirFactory);
    LuceneIndexEditorProvider provider = luceneIndexHelper.createEditorProvider();
    provider.setWriterConfig(luceneIndexHelper.getWriterConfigForReindex());
    return provider;
}
Also used : LuceneIndexEditorProvider(org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider) FSDirectoryFactory(org.apache.jackrabbit.oak.plugins.index.lucene.directory.FSDirectoryFactory) DirectoryFactory(org.apache.jackrabbit.oak.plugins.index.lucene.directory.DirectoryFactory) FSDirectoryFactory(org.apache.jackrabbit.oak.plugins.index.lucene.directory.FSDirectoryFactory)

Aggregations

DirectoryFactory (org.apache.jackrabbit.oak.plugins.index.lucene.directory.DirectoryFactory)6 DefaultDirectoryFactory (org.apache.jackrabbit.oak.plugins.index.lucene.directory.DefaultDirectoryFactory)4 Test (org.junit.Test)4 DefaultIndexWriterFactory (org.apache.jackrabbit.oak.plugins.index.lucene.writer.DefaultIndexWriterFactory)3 LuceneIndexWriter (org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriter)3 CachingFileDataStore (org.apache.jackrabbit.oak.plugins.blob.datastore.CachingFileDataStore)2 DataStoreBlobStore (org.apache.jackrabbit.oak.plugins.blob.datastore.DataStoreBlobStore)2 LuceneIndexEditorProvider (org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexEditorProvider)2 LuceneIndexWriterConfig (org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriterConfig)2 LuceneIndexWriterFactory (org.apache.jackrabbit.oak.plugins.index.lucene.writer.LuceneIndexWriterFactory)2 NodeBuilder (org.apache.jackrabbit.oak.spi.state.NodeBuilder)2 Document (org.apache.lucene.document.Document)2 AtomicBoolean (java.util.concurrent.atomic.AtomicBoolean)1 BlobDeletionCallback (org.apache.jackrabbit.oak.plugins.index.lucene.directory.ActiveDeletedBlobCollectorFactory.BlobDeletionCallback)1 FSDirectoryFactory (org.apache.jackrabbit.oak.plugins.index.lucene.directory.FSDirectoryFactory)1 DefaultIndexReaderFactory (org.apache.jackrabbit.oak.plugins.index.lucene.reader.DefaultIndexReaderFactory)1 LuceneIndexReader (org.apache.jackrabbit.oak.plugins.index.lucene.reader.LuceneIndexReader)1 LuceneIndexReaderFactory (org.apache.jackrabbit.oak.plugins.index.lucene.reader.LuceneIndexReaderFactory)1 IndexDefinitionBuilder (org.apache.jackrabbit.oak.plugins.index.lucene.util.IndexDefinitionBuilder)1 LuceneIndexHelper.newLucenePropertyIndexDefinition (org.apache.jackrabbit.oak.plugins.index.lucene.util.LuceneIndexHelper.newLucenePropertyIndexDefinition)1