Interface IRegexpQuery
Queries documents that contain terms matching a regular expression.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public interface IRegexpQuery : IFieldNameQuery, IQuery
Properties
| Edit this page View SourceFlags
Enables optional operators for the regular expression.
Declaration
[DataMember(Name = "flags")]
string Flags { get; set; }
Property Value
Type | Description |
---|---|
string |
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? |
Rewrite
Method used to rewrite the query.
Declaration
[DataMember(Name = "rewrite")]
MultiTermQueryRewrite Rewrite { get; set; }
Property Value
Type | Description |
---|---|
MultiTermQueryRewrite |
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 |