Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
{
"query" : {
"filtered": {
"query": {
"match_all": {}
},
"filter": {
"bool": {
"must": [
{"term": {
"courseUuid": "{{courseUuid}}"
}}
]
}
}
}
},
"size" : 0,
"aggs" : {
"{{field_name}}" : {
"terms": {
"field": "{{field_name}}",
"size": 10000
}, "aggs": {
"{{time_interval}}": {
"date_histogram": {
"field": "time",
"interval": "{{time_interval}}",
"min_doc_count": 0
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.