Class IndexWriterConfigSource
java.lang.Object
org.hibernate.search.backend.lucene.lowlevel.writer.impl.IndexWriterConfigSource
A source of index writer configuration that can be re-used on multiple writers.
This is mostly necessary because we don't have access to the user configuration after startup, and we don't want to re-use the same IndexWriterConfig instance multiple times in order to be safe and make sure a previous, failing index writer will never affect the configuration of the new index writer created to replace it.
- Author:
- Hardy Ferentschik, Sanne Grinovero
-
Method Summary
Modifier and TypeMethodDescriptionstatic IndexWriterConfigSourcecreate(org.apache.lucene.search.similarities.Similarity similarity, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.codecs.Codec codec, ConfigurationPropertySource propertySource, EventContext eventContext) org.apache.lucene.index.IndexWriterConfigCreates a newIndexWriterConfig.toString()
-
Method Details
-
create
public static IndexWriterConfigSource create(org.apache.lucene.search.similarities.Similarity similarity, org.apache.lucene.analysis.Analyzer analyzer, org.apache.lucene.codecs.Codec codec, ConfigurationPropertySource propertySource, EventContext eventContext) -
toString
-
createIndexWriterConfig
public org.apache.lucene.index.IndexWriterConfig createIndexWriterConfig()Creates a newIndexWriterConfig. Undefined parameters are not set, leaving the lucene default.
-