Method OpenIndexWriter
OpenIndexWriter(Directory, IndexWriterConfig)
Open internal index writer, which contains the taxonomy data.
Extensions may provide their own IndexWriter implementation or instance.
NOTE: the instance this method returns will be disposed upon calling to Dispose().
NOTE: the merge policy in effect must not merge none adjacent segments. See comment in CreateIndexWriterConfig(OpenMode) for the logic behind this.
Declaration
protected virtual IndexWriter OpenIndexWriter(Directory directory, IndexWriterConfig config)
Parameters
Type | Name | Description |
---|---|---|
Directory | directory | the Directory on top of which an IndexWriter should be opened. |
IndexWriterConfig | config | configuration for the internal index writer. |
Returns
Type | Description |
---|---|
IndexWriter |