Class CompletionField
A field mapped as an ICompletionProperty. Convenience class to use when indexing completion fields.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class CompletionField
Properties
| Edit this page View SourceContexts
The contexts to associate with the input which can be used at query time to filter and boost suggestions
Declaration
[DataMember(Name = "contexts")]
public IDictionary<string, IEnumerable<string>> Contexts { get; set; }
Property Value
Type | Description |
---|---|
IDictionary<string, IEnumerable<string>> |
Input
The input to store. Can be a single or multiple inputs
Declaration
[DataMember(Name = "input")]
public IEnumerable<string> Input { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Weight
A positive integer which defines a weight and allows you to rank your suggestions. This field is optional.
Declaration
[DataMember(Name = "weight")]
public int? Weight { get; set; }
Property Value
Type | Description |
---|---|
int? |