GroupDocs.Search for .NET 16.11 Release Notes

Major Features

There is one feature in this regular monthly release:

  • Implement Case sensitive search feature

All Changes

KeySummaryCategory
SEARCHNET-452Implement Case sensitive search featureNew Feature

Public API and Backward Incompatible Changes

Implement Case Sensitive Search Feature

This feature allows using a case sensitive search.

C#

            string indexFolder = @"MyIndex";
            string documentsFolder = @"c:\MyDocuments";
            string caseSensitiveSearchQuery = "Case Sensitive Search Query";

            bool inMemoryIndex = false;
            bool caseSensitive = true;
            IndexingSettings settings = new IndexingSettings(inMemoryIndex, caseSensitive);

            Index index = new Index(indexFolder, settings);
            index.AddToIndex(documentsFolder);

            SearchParameters parameters = new SearchParameters();
            parameters.UseCaseSensitiveSearch = true; // using case sensitive search feature

            SearchResults searchResults = index.Search(caseSensitiveSearchQuery, parameters);