Class RegexpQuery
Queries documents that contain terms matching a regular expression.
Inherited Members
Namespace: OpenSearch.Client
Assembly: OpenSearch.Client.dll
Syntax
public class RegexpQuery : FieldNameQueryBase, IRegexpQuery, IFieldNameQuery, IQuery
Properties
| Edit this page View SourceConditionless
Declaration
protected override bool Conditionless { get; }
Property Value
Type | Description |
---|---|
bool |
Overrides
| Edit this page View SourceFlags
Enables optional operators for the regular expression.
Declaration
public 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
public int? MaximumDeterminizedStates { get; set; }
Property Value
Type | Description |
---|---|
int? |
Rewrite
Method used to rewrite the query.
Declaration
public MultiTermQueryRewrite Rewrite { get; set; }
Property Value
Type | Description |
---|---|
MultiTermQueryRewrite |
Value
Regular expression for terms you wish to find in the provided field
Declaration
public string Value { get; set; }
Property Value
Type | Description |
---|---|
string |