Skip to main content

Glossary: SuggestionQuery

Properties

NameTypeDescription
TermstringThe term is what the user likely entered, and will used as the basis of the suggestions
FieldstringThe field to be used in conjunction with the index
MaxSuggestionsintThe number of suggestions to return
DistanceStringDistanceTypes?The string distance algorithm
Accuracyfloat?The accuracy
PopularityboolWhatever to return the terms in order of popularity

StringDistanceTypes (enum)

Members

NameDescription
NoneDefault, suggestion is not active
DefaultDefault, equivalent to Levenshtein
LevenshteinLevenshtein distance algorithm (default)
JaroWinklerJaroWinkler distance algorithm
NGramNGram distance algorithm