public class LuceneSchemaIndexBuilder extends AbstractLuceneIndexBuilder<LuceneSchemaIndexBuilder>
LuceneSchemaIndex,
AbstractLuceneIndexBuilder| Modifier and Type | Method and Description |
|---|---|
SchemaIndex |
build()
Build lucene schema index with specified configuration
|
static LuceneSchemaIndexBuilder |
create(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor descriptor)
Create new lucene schema index builder.
|
LuceneSchemaIndexBuilder |
withSamplingConfig(org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig)
Specify lucene schema index sampling config
|
LuceneSchemaIndexBuilder |
withWriterConfig(org.neo4j.function.Factory<org.apache.lucene.index.IndexWriterConfig> writerConfigFactory)
Specify
Factory of lucene IndexWriterConfig to create IndexWriters. |
withConfig, withDirectoryFactory, withFileSystem, withIndexIdentifier, withIndexRootFolder, withIndexStorage, withOperationalModepublic static LuceneSchemaIndexBuilder create(org.neo4j.kernel.api.schema_new.index.NewIndexDescriptor descriptor)
descriptor - The descriptor for this indexpublic LuceneSchemaIndexBuilder withSamplingConfig(org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig)
samplingConfig - sampling configpublic LuceneSchemaIndexBuilder withWriterConfig(org.neo4j.function.Factory<org.apache.lucene.index.IndexWriterConfig> writerConfigFactory)
Factory of lucene IndexWriterConfig to create IndexWriters.writerConfigFactory - the supplier of writer configspublic SchemaIndex build()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.