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

      • createIndexWriterConfig

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