GroupDocs.Search for .NET 26.7.1 Release Notes
This page contains release notes for GroupDocs.Search for .NET 26.7.1
Full List of Issues Covering all Changes in this Release
| Key | Summary | Category |
|---|---|---|
| SEARCHNET-3619 | Implement an index version update without access to the source documents | Improvement |
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.
Breaking change: The document index needs to be updated to work with the current API version.
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);
}
...