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 Query Usage
editRaw Query Usage
editAllows a query represented as a string of JSON to be passed to NEST’s Fluent API or Object Initializer syntax. This can be useful when porting over a query expressed in the query DSL over to NEST.
Fluent DSL example
editq .Raw(RawTermQuery)
Object Initializer syntax example
editnew RawQuery(RawTermQuery)
Example json output.
{ "term": { "fieldname": "value" } }