Elasticsearch Query: using match query with AND operator, fetching all the data

Query

{
    "query": {
        "bool": {
            "should": [
                
                {
                    "match": {
                        "keywords.keyword_values": {
                            "query": "prayer room",
                            "operator": "AND"
                        }
                    }
                }
            ],
            "minimum_should_match": "1"
        }
    }
}

Doc 1

"keywords": [
  {
    "keyword_values": "room"
  },
  {
    "keyword_values": "prayer"
  }
}

Doc 2

"keywords": [
  {
    "keyword_values": "room prayer"
  }
}

Doc 3

"keywords": [
  {
    "keyword_values": "prayer room"
  }
}

I want to fetch only Doc 2 & Doc 3 not Doc 1, the above query is fetching all 3 Docs

Please do not duplicate questions.

I have updated the question

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