NOTE: You are looking at documentation for an older release. 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" } }