Class ConditionTokenFilter
The conditional token filter takes a predicate script and a list of subfilters, and only applies the subfilters to the current token if it matches the predicate.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class ConditionTokenFilter : TokenFilterBase, IConditionTokenFilter, ITokenFilter
Constructors
| Edit this page View SourceConditionTokenFilter()
Declaration
public ConditionTokenFilter()
Properties
| Edit this page View SourceFilters
a chain of token filters to apply to the current token if the predicate matches. These can be any token filters defined elsewhere in the index mappings.
Declaration
public IEnumerable<string> Filters { get; set; }
Property Value
Type | Description |
---|---|
IEnumerable<string> |
Script
a predicate script that determines whether or not the filters will be applied to the current token. Note that only inline scripts are supported
Declaration
public IScript Script { get; set; }
Property Value
Type | Description |
---|---|
IScript |