Search Results for

    Show / Hide Table of Contents

    Interface IRegexpQuery

    Queries documents that contain terms matching a regular expression.

    Inherited Members
    IFieldNameQuery.Field
    IQuery.Boost
    IQuery.Conditionless
    IQuery.IsStrict
    IQuery.IsVerbatim
    IQuery.IsWritable
    IQuery.Name
    Namespace: OpenSearch.Client
    Assembly: OpenSearch.Client.dll
    Syntax
    public interface IRegexpQuery : IFieldNameQuery, IQuery

    Properties

    | Edit this page View Source

    Flags

    Enables optional operators for the regular expression.

    Declaration
    [DataMember(Name = "flags")]
    string Flags { get; set; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    MaximumDeterminizedStates

    Maximum number of automaton states required for the query. Default is 10000.

    OpenSearch uses Apache Lucene internally to parse regular expressions. Lucene converts each regular expression to a finite automaton containing a number of determinized states.

    You can use this parameter to prevent that conversion from unintentionally consuming too many resources. You may need to increase this limit to run complex regular expressions.
    Declaration
    [DataMember(Name = "max_determinized_states")]
    int? MaximumDeterminizedStates { get; set; }
    Property Value
    Type Description
    int?
    | Edit this page View Source

    Rewrite

    Method used to rewrite the query.

    Declaration
    [DataMember(Name = "rewrite")]
    MultiTermQueryRewrite Rewrite { get; set; }
    Property Value
    Type Description
    MultiTermQueryRewrite
    | Edit this page View Source

    Value

    Regular expression for terms you wish to find in the provided field

    Declaration
    [DataMember(Name = "value")]
    string Value { get; set; }
    Property Value
    Type Description
    string

    Extension Methods

    SuffixExtensions.Suffix(object, string)
    • Edit this page
    • View Source
    In this article
    • Properties
      • Flags
      • MaximumDeterminizedStates
      • Rewrite
      • Value
    • Extension Methods
    Back to top Generated by DocFX