Class PhraseSuggestCollateDescriptor<T>
Checks each suggestion against the specified query to prune suggestions
for which no matching docs exist in the index.
Inheritance
PhraseSuggestCollateDescriptor<T>
Assembly: OpenSearch.Client.dll
Syntax
public class PhraseSuggestCollateDescriptor<T> : DescriptorBase<PhraseSuggestCollateDescriptor<T>, IPhraseSuggestCollate>, IDescriptor, IPhraseSuggestCollate where T : class
Type Parameters
Methods
|
Edit this page
View Source
Params(IDictionary<string, object>)
The parameters for the query. the suggestion value will be added to the variables you specify.
Declaration
public PhraseSuggestCollateDescriptor<T> Params(IDictionary<string, object> paramsDictionary)
Parameters
Returns
|
Edit this page
View Source
Params(Func<FluentDictionary<string, object>, FluentDictionary<string, object>>)
The parameters for the query. the suggestion value will be added to the variables you specify.
Declaration
public PhraseSuggestCollateDescriptor<T> Params(Func<FluentDictionary<string, object>, FluentDictionary<string, object>> paramsDictionary)
Parameters
Returns
|
Edit this page
View Source
Prune(bool?)
Controls if all phrase suggestions will be returned. When set to true
, the suggestions will have
an additional option collate_match, which will be true
if matching documents for the phrase was found,
false
otherwise. The default value for Prune is false
.
Declaration
public PhraseSuggestCollateDescriptor<T> Prune(bool? prune = true)
Parameters
Type |
Name |
Description |
bool? |
prune |
|
Returns
|
Edit this page
View Source
Query(Func<PhraseSuggestCollateQueryDescriptor, IPhraseSuggestCollateQuery>)
The collate query to run.
Declaration
public PhraseSuggestCollateDescriptor<T> Query(Func<PhraseSuggestCollateQueryDescriptor, IPhraseSuggestCollateQuery> selector)
Parameters
Returns
Implements
Extension Methods