Context for clauses inside "must" parameter

I was reading Elasticsearch documentation here: https://www.elastic.co/guide/en/elasticsearch/reference/6.8/query-filter-context.html

The page gives an example of a query like so:

curl -X GET "localhost:9200/_search?pretty" -H 'Content-Type: application/json' -d'
{
    "query": { 
        "bool": { 
            "must": [
                { "match": { "title":   "Search"        }},
                { "match": { "content": "Elasticsearch" }}
           ],
           "filter": [ 
               { "term":  { "status": "published" }},
               { "range": { "publish_date": { "gte": "2015-01-01" }}}
           ]
         }
    }
}
'

The document then states the following:

The 'bool' and two 'match' clauses are used in query context, which means that they are used to score how well each document matches.

My confusion is stemming from the fact that the two 'match' clauses are enclosed in a 'must' parameter, which should make the context of the 'match' clauses as filter and not query context. I would really appreciate if someone can clarify my confusion.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.