aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_search_agg_histogram.txt
blob: 4689ad1d52b700df07e2bcceb5b3e634bfa59ccb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
POST /sales/_search?size=0
{
  "aggs": {
    "quantity": {
      "histogram": {
        "field": "quantity",
        "interval": 10,
        "keyed": true,
        "missing": 0 
      }
    }
  }
}