Query_string OR condition score explanation

GET index/_search
{
  "_source": [
    "_id",
    "field"
  ],
  "explain": true,
  "query": {
    "bool": {
      "must": [
        {
          "bool": {
            "should": [
              {
                "query_string": {
                  "fields": [
                    "field"
                  ],
                  "query": "(541713) OR (54*)"
                }
              }
            ]
          }
        }
      ]
    }
  },
  "size": 10,
  "sort": [
    "_score"
  ],
  "track_scores": true,
  "track_total_hits": true
}

Consider,

The "index" has a document with the value in the field as 541713.

If I search using the above-mentioned query then, both the conditions matched 541713 and 54* and both the conditions contribute to the score.

How can I get the score for the match condition 541713 alone?

Will query_string query match all criteria in OR?

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