WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Regexp Query Usageedit
Fluent DSL exampleedit
q .Regexp(c => c .Name("named_query") .Boost(1.1) .Field(p => p.Description) .Value("s.*y") .Flags("INTERSECTION|COMPLEMENT|EMPTY") .MaximumDeterminizedStates(20000) )
Object Initializer syntax exampleedit
new RegexpQuery { Name = "named_query", Boost = 1.1, Field = "description", Value = "s.*y", Flags = "INTERSECTION|COMPLEMENT|EMPTY", MaximumDeterminizedStates = 20000 }
Example json output.
{ "regexp": { "description": { "_name": "named_query", "boost": 1.1, "flags": "INTERSECTION|COMPLEMENT|EMPTY", "max_determinized_states": 20000, "value": "s.*y" } } }