你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
zz_hello
赞同来自:
{ "size" : 0, "aggs": { "sales": { "date_histogram": { "field": "sold", "interval": "month", "format": "yyyy-MM-dd" } } } }
qqq1234567
"date_histogram" : { "field" : "date", "script" : { "inline" : "doc['date'].value * 1000", "lang" : "painless" }, "format" : "yyyy:MM W", "interval" : "1w", "offset" : 0, "order" : { "_key" : "asc" }, "keyed" : false, "min_doc_count" : 0 }我设置了format的
"date_histogram" : { "field" : "date", "script" : { "inline" : "doc['date'].value * 1000", "lang" : "painless" }, "format" : "yyyy:MM W", "interval" : "1w", "offset" : 0, "order" : { "_key" : "asc" }, "keyed" : false, "min_doc_count" : 0 }
我设置了format的
liutianhao
Index103000 - PHP开发
stephen_qu - 多学,多动手,少说废话
"sold": { "format": "strict_date_optional_time||epoch_millis", "type": "date" }
要回复问题请先登录或注册
5 个回复
zz_hello
赞同来自:
qqq1234567
赞同来自:
liutianhao
赞同来自:
{
"key_as_string": "yyyy-MM-dd1552435200000",
"key": 1552435200000,
"doc_count": 133939
}
楼主是怎么解决的
Index103000 - PHP开发
赞同来自:
stephen_qu - 多学,多动手,少说废话
赞同来自: