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.
Type Query Usageedit
Fluent DSL exampleedit
q .Type(c => c .Name("named_query") .Boost(1.1) .Value<Developer>() )
Object Initializer syntax exampleedit
new TypeQuery { Name = "named_query", Boost = 1.1, Value = Type<Developer>() }
Example json output.
{ "type": { "_name": "named_query", "boost": 1.1, "value": "developer" } }