POST /sales/_search?size=0
{
  "aggs": {
    "quantity": {
      "histogram": {
        "field": "quantity",
        "interval": 10,
        "keyed": true,
        "missing": 0 
      }
    }
  }
}
