Interface IConditionTokenFilter
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.
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IConditionTokenFilter : ITokenFilter
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
[DataMember(Name = "filter")]
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
[DataMember(Name = "script")]
IScript Script { get; set; }
Property Value
Type | Description |
---|---|
IScript |