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.
Raw Combine Usageedit
NEST’s raw query can be combined with other queries using a compound query
such as a bool
query.
Fluent DSL exampleedit
q.Raw(RawTermQuery) && q.Term("x", "y")
Object Initializer syntax exampleedit
new RawQuery(RawTermQuery) && new TermQuery { Field = "x", Value = "y" }
Example json output.
{ "bool": { "must": [ { "term": { "fieldname": "value" } }, { "term": { "x": { "value": "y" } } } ] } }