Class CompletionSuggester
The completion suggester provides auto-complete/search-as-you-type functionality. This is a navigational feature to guide users to relevant results as they are typing, improving search precision. It is not meant for spell correction or did-you-mean functionality like the term or phrase suggesters.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class CompletionSuggester : SuggesterBase, ICompletionSuggester, ISuggester
Properties
| Edit this page View SourceContexts
Context mappings used to filter and/or boost suggestions
Declaration
public IDictionary<string, IList<ISuggestContextQuery>> Contexts { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, IList<ISuggestContextQuery>> |
Fuzzy
Support fuzziness for the suggestions
Declaration
public ISuggestFuzziness Fuzzy { get; set; }
Property Value
Type | Description |
---|---|
ISuggestFuzziness |
Prefix
Prefix used to search for suggestions
Declaration
public string Prefix { get; set; }
Property Value
Type | Description |
---|---|
string |
Regex
Prefix as a regular expression used to search for suggestions
Declaration
public string Regex { get; set; }
Property Value
Type | Description |
---|---|
string |
SkipDuplicates
Whether duplicate suggestions should be filtered out. Defaults to false
Declaration
public bool? SkipDuplicates { get; set; }
Property Value
Type | Description |
---|---|
bool? |