Here is the entire Request, and part of the Response.
Request:
{
"size": 0,
"query": {
"filtered": {
"query": {
"query_string": {
"analyze_wildcard": true,
"query": "*"
}
},
"filter": {
"bool": {
"must": [
{
"range": {
"@timestamp": {
"gte": 1459483200000,
"lte": 1462075199999,
"format": "epoch_millis"
}
}
}
],
"must_not": []
}
}
}
},
"aggs": {
"2": {
"date_histogram": {
"field": "@timestamp",
"interval": "12h",
"time_zone": "America/New_York",
"min_doc_count": 1,
"extended_bounds": {
"min": 1459483200000,
"max": 1462075199999
}
},
"aggs": {
"3": {
"terms": {
"field": "Member Type",
"size": 16,
"order": {
"_count": "desc"
}
}
}
}
}
}
}
Response:
{
"took": 25,
"timed_out": false,
"_shards": {
"total": 5,
"successful": 5,
"failed": 0
},
"hits": {
"total": 284958,
"max_score": 0,
"hits": []
},
"aggregations": {
"2": {
"buckets": [
{
"3": {
"doc_count_error_upper_bound": 0,
"sum_other_doc_count": 0,
"buckets": [
{
"key": "Full ATS Membership (US Only)",
"doc_count": 6927
},
{
"key": "Full ATS Membership (International Class A)",
"doc_count": 2255
},
{
"key": "Full ATS Membership (International Class C)",
"doc_count": 1711
},
{
"key": "Trainee ATS Membership - First Year Free (US Only)",
"doc_count": 1224
},
{
"key": "Trainee ATS Membership (US Only)",
"doc_count": 1073
},
{
"key": "Trainee ATS Membership - First Year Free (International)",
"doc_count": 540
},
{
"key": "Affiliate ATS Membership (US Only)",
"doc_count": 408
},
{
"key": "Emeritus ATS Membership",
"doc_count": 383
},
{
"key": "Trainee ATS Membership (International)",
"doc_count": 383
},
{
"key": "Senior ATS Membership (US Only)",
"doc_count": 326
},
{
"key": "Senior ATS Membership (International)",
"doc_count": 248
},
{
"key": "Full ATS Membership (International Class B)",
"doc_count": 212
},
{
"key": "Corporate ATS Membership",
"doc_count": 71
},
{
"key": "Honorary ATS Membership",
"doc_count": 36
},
{
"key": "Full ATS Membership (Complimentary Membership)",
"doc_count": 22
},
{
"key": "Affiliate ATS Membership (Complimentary Membership)",
"doc_count": 17
}
]
},
"key_as_string": "2016-04-01T00:00:00.000-04:00",
"key": 1459483200000,
"doc_count": 15836
},