Constructor IndexUpgrader
IndexUpgrader(Directory, LuceneVersion)
Creates index upgrader on the given directory, using an IndexWriter using the given
matchVersion
. The tool refuses to upgrade indexes with multiple commit points.
Declaration
public IndexUpgrader(Directory dir, LuceneVersion matchVersion)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
LuceneVersion | matchVersion |
IndexUpgrader(Directory, LuceneVersion, TextWriter, Boolean)
Creates index upgrader on the given directory, using an IndexWriter using the given
matchVersion
. You have the possibility to upgrade indexes with multiple commit points by removing
all older ones. If infoStream
is not null
, all logging output will be sent to this stream.
Declaration
public IndexUpgrader(Directory dir, LuceneVersion matchVersion, TextWriter infoStream, bool deletePriorCommits)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
LuceneVersion | matchVersion | |
TextWriter | infoStream | |
System.Boolean | deletePriorCommits |
IndexUpgrader(Directory, IndexWriterConfig, Boolean)
Creates index upgrader on the given directory, using an IndexWriter using the given config. You have the possibility to upgrade indexes with multiple commit points by removing all older ones.
Declaration
public IndexUpgrader(Directory dir, IndexWriterConfig iwc, bool deletePriorCommits)
Parameters
Type | Name | Description |
---|---|---|
Directory | dir | |
IndexWriterConfig | iwc | |
System.Boolean | deletePriorCommits |