title: elasticsearch range aggregation with fixed buckets values
body: <p>I need to create an aggregation, like "range" but I need to specify the "where" clause of each bucket.</p>
  
  <p>For example if we aggregate on an "age" field, what range agg offer is:</p>
  
  <ul>
  <li>bucket 1: to 10</li>
  <li>bucket 2: from 10 to 50</li>
  <li>bucket 3: from 50</li>
  </ul>
  
  <p>what I need is:</p>
  
  <ul>
  <li>bucket 1: [5,4334,211 and 76]</li>
  <li>bucket 2: [66 and 435]</li>
  <li>bucket 3: [5455, 7968, 1, 443 and 765]</li>
  </ul>
  
  <p>I don't want to create 3 "terms" aggregations with the "include" property, what I need is one aggregation with 3 buckets (just like range offers).</p>
  
  <p>Any ideas or alternatives ?</p>