Hello,
I have a bool Query which gives me results and terms bucket Aggregation on one of the Fields.
is there a way to Aggregate each Bucket item with Date Histogram aggregation
{
"size": 10,
"query": {
"bool": {
"must": [
{
"multi_match": {
"query": "welding",
"type": "phrase",
"fields": [
"title^10",
"abstraction"
],
"boost": 25,
"_name": "welding"
}
}
]
}
},
"aggs": {
"category": {
"terms": {
"field": "category",
"size": 200
},
"aggs": {
"dates": {
"date_histogram": {
"field": "pulbicationDate",
"interval": "year",
"format": "yyyy"
}
}
}
}
}
}
I was expecting aggregation results where I would have all the Category Buckets and Also the date Histogram of Each Category that's matching the Query.
Thank you.