Elasticsearch bool query

GET /school/_search
{
   "query": {
      "bool": {
         "disable_coord": true,
         "should": [
            {
               "bool": {
                  "must": [
                     {
                        "match": {
                           "name": {
                              "query": "USA"
                           }
                        }
                     }
                  ]
               }
            },
               { 
               "match": {
                  ...
               },
            {
               "match": {
                  ...
               }
            }

         ]
      }
   }
}

I have one big should query, inside it there are some match queries, besides a small bool query that contains must. Although I disable the coord, it is still counted. How can I fix this?

what do you mean by coutned? Maybe you should just use filter instead of must?

If I disable coord, it will works different queries like different match and should queries, however inside match query, the terms are divided into sub queries so inside match query it calculates coord factor, it affects the result. We can not access that configuration.

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