FuzzySearchOptions

FuzzySearchOptions class

Provides options of the fuzzy search.

public class FuzzySearchOptions

Properties

Name Description
ConsiderTranspositions { get; set; } Gets or sets a value indicating whether the fuzzy search algorithm must consider transposition of two adjacent characters as a single mistake. The default value is true.
Enabled { get; set; } Gets or sets a value indicating whether the fuzzy search feature is enabled. The default value is false.
FuzzyAlgorithm { get; set; } Gets or sets the fuzzy search algorithm. The currently available fuzzy search algorithms are SimilarityLevel and TableDiscreteFunction. The default value is an instance of SimilarityLevel with a similarity level value of 0.5.
OnlyBestResults { get; set; } Gets or sets a value indicating whether only the best results will be returned. The default value is false.
OnlyBestResultsRange { get; set; } Gets or sets the maximum exceeding of the minimum number of mistakes that are found. The default value is 0.

Remarks

The mistakes and the length of a word are counted in UTF-16 code units, as the terms of an index are stored: a character above the basic multilingual plane, for example an emoji that the alphabet of the index makes a letter, is two units, so replacing it with a letter is two mistakes.

Learn more

See Also