Combine two queries

Hello,
I want to combine two queries into one:
query 1:

{
  "query": {
    "match_phrase": {
      "m09-event-id.keyword": "DELIVER"
    }
  }
}

query 2:

{
  "query": {
    "match_phrase": {
      "m23-directionality.keyword": "Originating"
    }
  }
}

Both queries are true meaning query 1 AND query 2

You can use a bool query and add the 2 match_phrase queries within the must array.

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