IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Raw Combine Usage
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Raw Combine Usage
editNEST’s raw query can be combined with other queries using a compound query
such as a bool query.
Fluent DSL example
editq.Raw(RawTermQuery) && q.Term("x", "y")
Object Initializer syntax example
editnew RawQuery(RawTermQuery)
&& new TermQuery { Field = "x", Value = "y" }
Example json output.
{
"bool": {
"must": [
{
"term": {
"fieldname": "value"
}
},
{
"term": {
"x": {
"value": "y"
}
}
}
]
}
}