IndexUpdater Class
Represents an index updater. This class performs reindexing documents in an index of an old version.
Inheritance Hierarchy

Namespace: GroupDocs.Search
Assembly: GroupDocs.Search (in GroupDocs.Search.dll) Version: 20.1
public class IndexUpdater

The IndexUpdater type exposes the following members.

Public methodIndexUpdater
Initializes a new instance of the IndexUpdater class.
Public methodCanUpdateVersion
Checks whether an index in the specified directory can be updated to the latest version.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIsLatestVersion
Checks whether the specified directory contains an index of the latest version.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Public methodUpdateVersion
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.
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);
See Also