Skip to end of metadata
Go to start of metadata

This page contains release notes for GroupDocs.Search for .NET 18.12.

Major Features

There are 2 new features in this regular monthly release:

  • Implement blended characters
  • Implement wildcard search

All Changes

Key

Summary

Category

SEARCHNET-803

Implement blended characters

New Feature

SEARCHNET-1781Implement wildcard searchNew Feature

Public API and Backward Incompatible Changes

This section lists public API changes that were introduced in GroupDocs.Search for .NET 18.12. It includes not only new and obsoleted public methods, but also a description of any changes in the behavior behind the scenes in GroupDocs.Search which may affect existing code. Any behavior introduced that could be seen as a regression and modifies existing behavior is especially important and is documented here.

Implement blended characters

Description

This feature introduces a new class of characters - blended. When indexing, blended characters are interpreted simultaneously as valid letters and as separators.
For example, if the hyphen is marked as a blended character then indexing of term 'silver-gray' will result in saving of 3 terms in the index: 'silver', 'gray', and 'silver-gray'.

Public API changes

Enum CharacterType has been added to GroupDocs.Search namespace.
Value Separator has been added to GroupDocs.Search.CharacterType enum.
Value Letter has been added to GroupDocs.Search.CharacterType enum.
Value Blended has been added to GroupDocs.Search.CharacterType enum.

Indexer CharacterType Item(char) has been added to GroupDocs.Search.Alphabet class.
Method SetRange(char[], CharacterType) nas been added to GroupDocs.Search.Alphabet class.

Usecases

This example shows how to perform indexing and search with blended characters:

C#

Implement wildcard search

Description

This feature allows to perform search of words containing wildcards.
There are two possible forms of wildcard to use in wildcard search:

  • ? - quotation mark representing one arbitrary character
  • ?(N~M) -range of arbitrary characters in an amount from N to M, where N and M must be in the range from 0 to 255

As well implemented the ability to perform wildcard search using the more flexible object form of search query.

Public API changes

Class WordPattern has been added to GroupDocs.Search namespace.
Constructor WordPattern() nas been added to GroupDocs.Search.WordPattern class.
Method AppendString(string) nas been added to GroupDocs.Search.WordPattern class.
Method AppendCharacter(char) nas been added to GroupDocs.Search.WordPattern class.
Method AppendOneCharacterWildcard() nas been added to GroupDocs.Search.WordPattern class.
Method AppendZeroOrOneCharacterWildcard() nas been added to GroupDocs.Search.WordPattern class.
Method AppendZeroOrMoreCharactersWildcard() nas been added to GroupDocs.Search.WordPattern class.
Method AppendOneOrMoreCharactersWildcard() nas been added to GroupDocs.Search.WordPattern class.
Method AppendWildcard(int, int) nas been added to GroupDocs.Search.WordPattern class.

Method SearchQuery CreateWordPatternQuery(WordPattern) nas been added to GroupDocs.Search.SearchQuery class.

Method SearchQuery GetChild(int) nas been added to GroupDocs.Search.SearchQuery class.

Usecases

The first example shows how to perform wildcard search using the query in text form:

C#

The next example shows how to perform wildcard search using query in object form:

C#
Labels
  • No labels