GroupDocs.Search for .NET 24.2.1 Release Notes

Major Features

There are the following features, enhancements, and fixes in this release:

  • Implement a tool to check the index health

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
SEARCHNET-2880Implement a tool to check the index healthEnhancement

Public API and Backward Incompatible Changes

Implement a tool to check the index health

This enhancement allows you to diagnose each index segment on the disk and restore error-free index operation by resetting damaged segments. Data in damaged segments no longer exists in the index and therefore cannot be searched.

Public API changes

Method Void CheckSegments(Boolean) has been added to GroupDocs.Search.Index class.

Field GroupDocs.Search.Common.IndexStatus CheckingSegments has been added to GroupDocs.Search.Common.IndexStatus enum.

Use cases

The following example shows how to check the index segments on disk and reset the damaged segments.

C#

string indexFolder = @"c:\MyIndex";

// Opening an index
Index index = new Index(indexFolder, false);

// Logging errors
index.Events.ErrorOccurred += (s, e) => Console.WriteLine(e.Message);

// Checking segments and restoring damaged ones
index.CheckSegments(true);