Class IndexWriterConfigSource
- java.lang.Object
-
- org.hibernate.search.backend.lucene.lowlevel.writer.impl.IndexWriterConfigSource
-
public class IndexWriterConfigSource extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static IndexWriterConfigSourcecreate(org.apache.lucene.search.similarities.Similarity similarity, org.apache.lucene.analysis.Analyzer analyzer, ConfigurationPropertySource propertySource, EventContext eventContext)org.apache.lucene.index.IndexWriterConfigcreateIndexWriterConfig()Creates a newIndexWriterConfig.StringtoString()
-
-
-
Method Detail
-
create
public static IndexWriterConfigSource create(org.apache.lucene.search.similarities.Similarity similarity, org.apache.lucene.analysis.Analyzer analyzer, ConfigurationPropertySource propertySource, EventContext eventContext)
-
createIndexWriterConfig
public org.apache.lucene.index.IndexWriterConfig createIndexWriterConfig()
Creates a newIndexWriterConfig. Undefined parameters are not set, leaving the lucene default.
-
-