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 Usageedit
Allows 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 exampleedit
q .Raw(RawTermQuery)
Object Initializer syntax exampleedit
new RawQuery(RawTermQuery)
Example json output.
{ "term": { "fieldname": "value" } }