Skip to content

Latest commit

 

History

History
29 lines (27 loc) · 395 Bytes

File metadata and controls

29 lines (27 loc) · 395 Bytes

Filters

Adding a filter clause to the bool query

GET /recipes/_search
{
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "title": "pasta"
          }
        }
      ],
      "filter": [
        {
          "range": {
            "preparation_time_minutes": {
              "lte": 15
            }
          }
        }
      ]
    }
  }
}