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