Constructor IndexWriterConfig
IndexWriterConfig(LuceneVersion, Analyzer)
Creates a new config that with defaults that match the specified
LuceneVersion as well as the default
Analyzer. If matchVersion
is >=
LUCENE_32, TieredMergePolicy is used
for merging; else LogByteSizeMergePolicy.
Note that TieredMergePolicy is free to select
non-contiguous merges, which means docIDs may not
remain monotonic over time. If this is a problem you
should switch to LogByteSizeMergePolicy or
LogDocMergePolicy.
Declaration
public IndexWriterConfig(LuceneVersion matchVersion, Analyzer analyzer)
Parameters
Type | Name | Description |
---|---|---|
LuceneVersion | matchVersion | |
Analyzer | analyzer |