Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    TokenFilterBase
    ConditionTokenFilter
    Implements
    IConditionTokenFilter
    ITokenFilter
    Inherited Members
    TokenFilterBase.Type
    TokenFilterBase.Version
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public class ConditionTokenFilter : TokenFilterBase, IConditionTokenFilter, ITokenFilter

    Constructors

    | Edit this page View Source

    ConditionTokenFilter()

    Declaration
    public ConditionTokenFilter()

    Properties

    | Edit this page View Source

    Filters

    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>
    | Edit this page View Source

    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

    Implements

    IConditionTokenFilter
    ITokenFilter

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Constructors
      • ConditionTokenFilter()
    • Properties
      • Filters
      • Script
    • Implements
    • Extension Methods
    Back to top Generated by DocFX