GroupDocs.Search for .NET 26.7.1 Release Notes

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
SEARCHNET-3619Implement an index version update without access to the source documentsImprovement

Public API and Backward Incompatible Changes

Implement an index version update without access to the source documents

This improvement enables the ability to upgrade an index from a previous version’s format to a new version’s format without accessing the original indexed documents.

To update the index version, see the code snippet below.

Public API changes

None.

Use cases

The following code example demonstrates how to perform an index version update.

string sourceIndexFolder = @"c:\MyOldIndex\";
string targetIndexFolder = @"c:\MyNewIndex\";
 
IndexUpdater updater = new IndexUpdater();
 
if (updater.CanUpdateVersion(sourceIndexFolder))
{
    // The index of old version does not change
    VersionUpdateResult result = updater.UpdateVersion(sourceIndexFolder, targetIndexFolder);
}
...