Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Section
Column
width50%
Panel
titleBGColor#B0C4DE
titleContents Summary
Table of Contents
stylenone
outlinetrue
typelist
Column
 
Info
 The code in below examples uses some methods defined in Common Utilities.
Info

This feature is supported by version 18.12 or greater.

Blended Characters Search

GroupDocs.Search API 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'.

The Recipe

To search using morphological word form, following steps are needed to be followed:

  • Initialize Index
  • Mark hyphen as a blended character using Index.Dictionaries.Alphabet.SetRange(new char[] { '-' }, CharacterType.Blended)

  • Get search results using Index.Search("silver-gray")

The Code

HTML
<script src="https://gist.github.com/GroupDocsGists/e2fbbc95998a6e80ba26c38d3c85baa3.js"></script>