Interface ICompletionSuggester
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.
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface ICompletionSuggester : ISuggester
Properties
| Edit this page View SourceContexts
Context mappings used to filter and/or boost suggestions
Declaration
[DataMember(Name = "contexts")]
IDictionary<string, IList<ISuggestContextQuery>> Contexts { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, IList<ISuggestContextQuery>> |
Fuzzy
Support fuzziness for the suggestions
Declaration
[DataMember(Name = "fuzzy")]
ISuggestFuzziness Fuzzy { get; set; }
Property Value
Type | Description |
---|---|
ISuggestFuzziness |
Prefix
Prefix used to search for suggestions
Declaration
[IgnoreDataMember]
string Prefix { get; set; }
Property Value
Type | Description |
---|---|
string |
Regex
Prefix as a regular expression used to search for suggestions
Declaration
[IgnoreDataMember]
string Regex { get; set; }
Property Value
Type | Description |
---|---|
string |
SkipDuplicates
Whether duplicate suggestions should be filtered out. Defaults to false
Declaration
[DataMember(Name = "skip_duplicates")]
bool? SkipDuplicates { get; set; }
Property Value
Type | Description |
---|---|
bool? |