1. Docs
  2. Cloaked Search
  3. Usage
  4. Querying
  5. Disjunction Max
  1. Docs
  2. Cloaked Search
  3. Usage
  4. Querying
  5. Disjunction Max

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?

One sec... bot checking