Constructor IndexWriter
IndexWriter(Directory, IndexWriterConfig)
Constructs a new IndexWriter per the settings given in conf
.
If you want to make "live" changes to this writer instance, use
Config.
NOTE: after ths writer is created, the given configuration instance cannot be passed to another writer. If you intend to do so, you should Clone() it beforehand.
Declaration
public IndexWriter(Directory dir, IndexWriterConfig conf)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
IndexWriterConfig | conf | the configuration settings according to which IndexWriter should be initialized. |