use of org.neo4j.kernel.api.impl.index.LuceneMinimalIndexAccessor in project neo4j by neo4j.
the class FulltextIndexProvider method getMinimalIndexAccessor.
@Override
public MinimalIndexAccessor getMinimalIndexAccessor(IndexDescriptor descriptor) {
PartitionedIndexStorage indexStorage = getIndexStorage(descriptor.getId());
DatabaseIndex<FulltextIndexReader> fulltextIndex = new DroppableIndex<>(new DroppableLuceneIndex<>(indexStorage, new ReadOnlyIndexPartitionFactory(), descriptor));
log.debug("Creating dropper for fulltext schema index: %s", descriptor);
return new LuceneMinimalIndexAccessor<>(descriptor, fulltextIndex, isReadOnly());
}
use of org.neo4j.kernel.api.impl.index.LuceneMinimalIndexAccessor in project neo4j by neo4j.
the class LuceneIndexProvider method getMinimalIndexAccessor.
@Override
public MinimalIndexAccessor getMinimalIndexAccessor(IndexDescriptor descriptor) {
PartitionedIndexStorage indexStorage = indexStorageFactory.indexStorageOf(descriptor.getId());
DroppableIndex<ValueIndexReader> index = new DroppableIndex<>(new DroppableLuceneIndex<>(indexStorage, new ReadOnlyIndexPartitionFactory(), descriptor));
return new LuceneMinimalIndexAccessor<>(descriptor, index, true);
}
Aggregations