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;
}
Aggregations