IndexUpdater Class |
Namespace: GroupDocs.Search
The IndexUpdater type exposes the following members.
Name | Description | |
---|---|---|
![]() | IndexUpdater |
Initializes a new instance of the IndexUpdater class.
|
Name | Description | |
---|---|---|
![]() | CanUpdateVersion |
Checks whether an index in the specified directory can be updated to the latest version.
|
![]() | Equals | (Inherited from Object.) |
![]() | Finalize | (Inherited from Object.) |
![]() | GetHashCode | (Inherited from Object.) |
![]() | GetType | (Inherited from Object.) |
![]() | IsLatestVersion |
Checks whether the specified directory contains an index of the latest version.
|
![]() | MemberwiseClone | (Inherited from Object.) |
![]() | ToString | (Inherited from Object.) |
![]() | UpdateVersion |
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.
|
string sourceIndexFolder = @"c:\MyOldIndex\"; string targetIndexFolder = @"c:\MyNewIndex\"; IndexUpdater updater = new IndexUpdater(); if (updater.CanUpdateVersion(sourceIndexFolder)) { VersionUpdateResult result = updater.UpdateVersion(sourceIndexFolder, targetIndexFolder); }