aboutsummaryrefslogtreecommitdiffstats
path: root/tests/files/search/GET_search_agg_composite_paginate.txt
blob: 53f3a5c8f77ea2d7cc8e5432f5756d8c15e70113 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
GET /some-index/_search
{
  "size": 0,
  "aggs": {
    "my_buckets": {
      "composite": {
        "size": 2,
        "sources": [
          { "date": { "date_histogram": { "field": "timestamp", "calendar_interval": "1d", "order": "desc" } } },
          { "product": { "terms": { "field": "product", "order": "asc" } } }
        ],
        "after": { "date": 1494288000000, "product": "mad max" } 
      }
    }
  }
}