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()
Create new lucene schema index builder.
|
LuceneSchemaIndexBuilder |
uniqueIndex()
Transform builder to build unique index
|
LuceneSchemaIndexBuilder |
withIndexConfig(org.neo4j.kernel.api.index.IndexConfiguration indexConfig)
Specify lucene schema index config
|
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()
public LuceneSchemaIndexBuilder withSamplingConfig(org.neo4j.kernel.impl.api.index.sampling.IndexSamplingConfig samplingConfig)
samplingConfig - sampling configpublic LuceneSchemaIndexBuilder withIndexConfig(org.neo4j.kernel.api.index.IndexConfiguration indexConfig)
indexConfig - index 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 LuceneSchemaIndexBuilder uniqueIndex()
public SchemaIndex build()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.