1. Docs

Disjunction max query

A dis_max query has its queries analyzed then is simply passed through to the search service. This means that any protected fields contained in the queries will be converted to protected tokens before being sent to the search service.

Reference the ElasticSearch documentation for a description and configuration options.

Example

JSON
{ "query": { "dis_max": { "queries": [ { "term": { "title": "Quick pets" } }, { "term": { "body": "Quick pets" } } ], "tie_breaker": 0.7 } } }

Was this page helpful?