GroupDocs.Search for .NET 24.4 Release Notes

Major Features

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

  • Enable Arabic alphabet by default
  • Implement saving the in-memory index to disk

Full List of Issues Covering all Changes in this Release

KeySummaryCategory
SEARCHNET-3132Enable Arabic alphabet by defaultEnhancement
SEARCHNET-3135Implement saving the in-memory index to diskFeature

Public API and Backward Incompatible Changes

Enable Arabic alphabet by default

This enhancement allows Arabic to be indexed by default, without having to set the character type in the Alphabet dictionary.

Public API changes

None.

Use cases

None.

Implement saving the in-memory index to disk

This feature allows you to save an in-memory index to disk. This is useful when an in-memory index becomes too large and can no longer reside in RAM alone. After saving to disk, the index can then be loaded from disk as usual. Note that a regular index can be saved to disk in a different folder in the same way.

Public API changes

Method Void SaveTo(System.String) has been added to GroupDocs.Search.Index class.
Field GroupDocs.Search.Common.IndexStatus SavingTheIndex has been added to GroupDocs.Search.Common.IndexStatus enum.

Use cases

The following example shows how to save an in-memory index to disk.

C#

string indexFolder = @"c:\MyIndex\";
string documentsFolder = @"c:\MyDocuments\";

// Creating an in-memory index
Index index = new Index();

// Indexing documents from the specified folder
index.Add(documentsFolder);

// Saving the index to disk
index.SaveTo(indexFolder);

// Closing the in-memory index
index.Dispose();

// Opening the index from disk
index = new Index(indexFolder);

// Searching in the index
string query = "focus";
SearchResult result = index.Search(query);