Class SuggestDescriptorBase<TDescriptor, TInterface, T>
A suggester that suggests similar looking terms based on a provided text
Inheritance
SuggestDescriptorBase<TDescriptor, TInterface, T>
Assembly: OpenSearch.Client.dll
Syntax
[DataContract]
public abstract class SuggestDescriptorBase<TDescriptor, TInterface, T> : DescriptorBase<TDescriptor, TInterface>, IDescriptor, ISuggester where TDescriptor : SuggestDescriptorBase<TDescriptor, TInterface, T>, TInterface, ISuggester where TInterface : class, ISuggester
Type Parameters
Name |
Description |
TDescriptor |
|
TInterface |
|
T |
|
Methods
|
Edit this page
View Source
Analyzer(string)
The analyzer to analyse the suggest text with.
Defaults to the search analyzer of the suggest field.
Declaration
public TDescriptor Analyzer(string analyzer)
Parameters
Type |
Name |
Description |
string |
analyzer |
|
Returns
Type |
Description |
TDescriptor |
|
|
Edit this page
View Source
Field(Field)
The name of the field on which to run the query
Declaration
public TDescriptor Field(Field field)
Parameters
Type |
Name |
Description |
Field |
field |
|
Returns
Type |
Description |
TDescriptor |
|
|
Edit this page
View Source
Field<TValue>(Expression<Func<T, TValue>>)
The name of the field on which to run the query
Declaration
public TDescriptor Field<TValue>(Expression<Func<T, TValue>> objectPath)
Parameters
Returns
Type |
Description |
TDescriptor |
|
Type Parameters
|
Edit this page
View Source
Size(int?)
The number of suggestions to return. Defaults to 5
Declaration
public TDescriptor Size(int? size)
Parameters
Type |
Name |
Description |
int? |
size |
|
Returns
Type |
Description |
TDescriptor |
|
Implements
Extension Methods