Hello there !
can you provide me an example of dateHistogram aggregation and tell me how to make subaggregation please ?
Here my elastic search query :
"aggs": {
"something_lost_in_time": {
"date_histogram": {
"field": "date",
"calendar_interval": "month",
"min_doc_count": 0,
"extended_bounds": {
"min": "now-2y",
"max": "now"
}
},
"aggs" : {
"my_filter_1" : {
"filter" : { "term": { "xxxx": "true" } }
},
"my_filter_1" : {
"filter" : { "term": { "yyyy": "true" } }
}
}
}
}
Thank you @yrodiere ( i assume you will answer me )