public class LuceneSchemaIndexBuilder extends AbstractLuceneIndexBuilder<LuceneSchemaIndexBuilder>
LuceneSchemaIndex
,
AbstractLuceneIndexBuilder
Modifier and Type | Method and Description |
---|---|
LuceneSchemaIndex |
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 IndexWriter s. |
withDirectoryFactory, withFileSystem, withIndexIdentifier, withIndexRootFolder, withIndexStorage
public 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 IndexWriter
s.writerConfigFactory
- the supplier of writer configspublic LuceneSchemaIndexBuilder uniqueIndex()
public LuceneSchemaIndex build()
Copyright © 2002–2016 The Neo4j Graph Database Project. All rights reserved.