es补零
GET /cars/transactions/_search
{
"size" : 0,
"aggs": {
"sales": {
"date_histogram": {
"field": "sold",
"interval": "month",
"format": "yyyy-MM-dd",
"min_doc_count" : 0,
"extended_bounds" : {
"min" : "2014-01-01",
"max" : "2014-12-31"
}
}
}
}
}
Original: https://www.cnblogs.com/buxizhizhoum/p/15067164.html
Author: Go_Forward
Title: es date_histogram强制补零
原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/603239/
转载文章受原作者版权保护。转载请注明原作者出处!