AutocompleteOptions Class

Represents the options for getting autocomplete results.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.3.0
C#
[SerializableAttribute]
public class AutocompleteOptions
Inheritance
Object    AutocompleteOptions

Constructors

AutocompleteOptionsInitializes a new instance of the AutocompleteOptions class

Properties

Append If true, adds an asterisk after the last word for suffix expansion (e.g., word*). Default: false.
ExpansionLength Number of characters to expand in the last word. Default: 10.
ForceBigrams Forces the use of bigrams (2-character n-grams) instead of trigrams for all word lengths, which can improve matching for words with transposition errors. Default: false.
Fuzziness Maximum Levenshtein distance for finding typos (0, 1, or 2). Set to 0 to disable fuzzy matching. Default: 2.
Layouts A list of keyboard layout codes for detecting typing errors caused by keyboard layout mismatches. Manticore compares character positions across different layouts to suggest corrections. Requires at least 2 layouts to effectively detect mismatches. Available options: us, ru, ua, se, pt, no, it, gr, uk, fr, es, dk, de, ch, br, bg, be.
Prepend If true, adds an asterisk before the last word for prefix expansion (e.g., *word). Default: false.
Preserve When set to true, keeps words that don't have fuzzy matches in the search results (e.g., "hello wrld" returns both "hello wrld" and "hello world"). When false, only returns words with successful fuzzy matches. Default: false.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also