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

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

The IndexUpdater type exposes the following members.

Constructors
  NameDescription
Public methodIndexUpdater
Initializes a new instance of the IndexUpdater class.
Methods
  NameDescription
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.
Remarks
Learn more
Examples
The example demonstrates a typical usage of the class.
C#
string sourceIndexFolder = @"c:\MyOldIndex\";
string targetIndexFolder = @"c:\MyNewIndex\";

IndexUpdater updater = new IndexUpdater();

if (updater.CanUpdateVersion(sourceIndexFolder))
{
    VersionUpdateResult result = updater.UpdateVersion(sourceIndexFolder, targetIndexFolder);
}
See Also