1
結合日期範圍過濾我有查詢:Elasticsearch 2.4 - 與日期直方圖
{
"size": 0,
"aggs": {
"data_bulanan" : {
"date_histogram" : {
"field" : "creation_date",
"interval" : "month",
"format": "MMMM"
},
"aggs": {
"SvcCharge" : {
"sum": {
"field": "service_tax"
}
},
"GvtTax" : {
"sum": {
"field": "government_tax"
}
},
"Discount" : {
"sum" : {
"field": "discount"
}
}
}
}
}
}
,我想日期範圍添加從日期到日期。例如從2014-01-01到2015-01-01。
如何添加?
謝謝
所以你會基本上喜歡將結果集限制在這些日期? –