Skip to content

match_all

curl -s "localhost:9200/movies/_search" \
  --request GET \
  --header "Content-Type: application/json" \
  --data @search.json \
| jq .
  • It's the default option (usually not even specified)
  • Returns all documents. Normally used with a filter
{
  "query": {
    "match_all": {}
  }
}