Class IndexWriterConfig

java.lang.Object
org.apache.lucene.index.LiveIndexWriterConfig
org.apache.lucene.index.IndexWriterConfig

public final class IndexWriterConfig extends LiveIndexWriterConfig
Holds all the configuration that is used to create an IndexWriter. Once IndexWriter has been created with this object, changes to this object will not affect the IndexWriter instance. For that, use LiveIndexWriterConfig that is returned from IndexWriter.getConfig().

All setter methods return IndexWriterConfig to allow chaining settings conveniently, for example:

 IndexWriterConfig conf = new IndexWriterConfig(analyzer);
 conf.setter1().setter2();
 
Since:
3.1
See Also: