Class PredicateTokenFilterDescriptor
The predicate_token_filter token filter takes a predicate script, and removes tokens that do
not match the predicate.
Inheritance
PredicateTokenFilterDescriptor
Assembly: OpenSearch.Client.dll
Syntax
public class PredicateTokenFilterDescriptor : TokenFilterDescriptorBase<PredicateTokenFilterDescriptor, IPredicateTokenFilter>, IDescriptor, IPredicateTokenFilter, ITokenFilter
Properties
|
Edit this page
View Source
Type
Declaration
protected override string Type { get; }
Property Value
Overrides
Methods
|
Edit this page
View Source
Script(Func<ScriptDescriptor, IScript>)
a predicate script that determines whether or not the current token will
be emitted. Note that only inline scripts are supported.
Declaration
public PredicateTokenFilterDescriptor Script(Func<ScriptDescriptor, IScript> scriptSelector)
Parameters
Returns
|
Edit this page
View Source
Script(string)
a predicate script that determines whether or not the current token will
be emitted. Note that only inline scripts are supported.
Declaration
public PredicateTokenFilterDescriptor Script(string predicate)
Parameters
Type |
Name |
Description |
string |
predicate |
|
Returns
Implements
Extension Methods