IndexUpdater
Leave feedback
On this page
Represents an index updater. This class performs reindexing documents in an index of an old version.
public class IndexUpdater
| Name | Description |
|---|---|
| IndexUpdater() | Initializes a new instance of the IndexUpdater class. |
| Name | Description |
|---|---|
| CanUpdateVersion(string) | Checks whether an index in the specified directory can be updated to the latest version. |
| IsLatestVersion(string) | Checks whether the specified directory contains an index of the latest version. |
| UpdateVersion(string, string) | Performs reindexing documents in an index of an old version. The updated index will be placed in the newIndexPath directory. The index in the indexPath directory will not be changed. |
Learn more
The example demonstrates a typical usage of the class.
string sourceIndexFolder = @"c:\MyOldIndex\";
string targetIndexFolder = @"c:\MyNewIndex\";
IndexUpdater updater = new IndexUpdater();
if (updater.CanUpdateVersion(sourceIndexFolder))
{
VersionUpdateResult result = updater.UpdateVersion(sourceIndexFolder, targetIndexFolder);
}
- namespace GroupDocs.Search
- assembly GroupDocs.Search
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.