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 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

      public String toString()
      Overrides:
      toString in class Object
    • createIndexWriterConfig

      public org.apache.lucene.index.IndexWriterConfig createIndexWriterConfig()
      Creates a new IndexWriterConfig. Undefined parameters are not set, leaving the lucene default.