GroupDocs.Search for .NET We are proudly announcing the monthly release of GroupDocs.Search for .NET 18.7. Using the latest version, you can search for morphological word forms. Furthermore, you can now break updating, merging and indexing operations manually. We would recommend you to install and use the latest version of API.

Enhancements

Following are the enhancements introduced in the latest version:

Search for Morphological Word Forms

The latest version of API allows you to search for singular and plural forms of a noun at the same time. You can also search for all existing forms of a verb at the same time: root, third-person singular, present participle, simple past, and past participle. Following code snippet shows how to search for morphological word forms:

string folderForIndex = "c:\\MyIndex\\";
string folderWithDocuments = "c:\\MyDocuments\\";
Index index = new Index(folderForIndex); 
index.AddToIndex(folderWithDocuments);
SearchParameters parameters = new SearchParameters();
parameters.UseWordFormsSearch = true;
//Searching for words "simplest", "simple", and "simpler"
SearchResults results1 = index.Search("simplest", parameters);

For more details on this feature, please visit this documentation article.

Break Updating Operation Manually

Using v18.7, you can cancel the updating operation by request and for time limitation of indexing. Following code snippets show how to break updating operation:

Break Updating Operation

string indexFolder = @"c:\MyIndex";
Index index = new Index(indexFolder);
index.UpdateAsync();
index.Break();

Break Updating Operation using Cancellation Object

string indexFolder = @"c:\MyIndex";
Cancellation cancellation = new Cancellation();
Index index = new Index(indexFolder);
index.UpdateAsync(cancellation);
cancellation.Cancel();

For more details on this feature, please visit this documentation article.

Break Merging Operation Manually

Using the latest version, you can cancel the merging operation by request. Following code snippet shows how to break merging operation:

string indexFolder = @"c:\MyIndex";
string documentsFolder = @"c:\MyDocuments";
Cancellation cancellation = new Cancellation();
cancellation.CancelAfter(5000);
Index index = new Index(indexFolder);
index.Merge(cancellation);

For more details on this feature, please visit this documentation article.

Break Indexing Operation using Cancellation Object

The latest version also allows you to cancel the indexing operation by request and for time limitation of indexing. Following code snippet shows how to break indexing operation:

string indexFolder = @"c:\MyIndex";
string documentsFolder = @"c:\MyDocuments";
Cancellation cancellation = new Cancellation();
Index index = new Index(indexFolder);
index.AddToIndexAsync(documentsFolder, cancellation);
Thread.Sleep(1000);
cancellation.Cancel();

For more details on this feature, please visit this documentation article.

Available Channels and Resources

Here are a few channels and resources for you to download, try, learn and get technical support on GroupDocs.Search:

Feedback

If you have any suggestions, questions, or queries related to the GroupDocs.Search for .NET API, we will be happy to hear from you. Just create a forum thread to share your thoughts.