# 'dis\_max'

The dis\_max clause allows you to select the highest score of a list of subqueries.&#x20;

**Example:**

{% code lineNumbers="true" %}

```python
{
  "query": {
    "dis_max": {
      "queries": [
        {
          "match": {
            "State": "MA"
          }
        },
        {
          "match": {
             "City": "Boston"
          }
        }
      ]
    }
  }
}

```

{% endcode %}

In the above example, matched documents will be assigned with a score based on the TF-IDF formula and the maximum score will be returned.
