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.index.IndexDescriptor 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 IndexWriter s. |
withConfig, withDirectoryFactory, withFileSystem, withIndexIdentifier, withIndexRootFolder, withIndexStorage, withOperationalMode
public static LuceneSchemaIndexBuilder create(org.neo4j.kernel.api.schema.index.IndexDescriptor 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 IndexWriter
s.writerConfigFactory
- the supplier of writer configspublic SchemaIndex build()
Copyright © 2002–2017 The Neo4j Graph Database Project. All rights reserved.