你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
rochy - rochy_he
赞同来自:
qqq1234567
POST /sales/_search?size=0 { "query" : { "term" : { "user" : "kimchy" } }, "aggs" : { "type_count" : { "cardinality" : { "field" : "type" } } } }
zz_hello
GET logstash/_search { "size": 0, "aggs": { "extension": { "terms": { "field": "extension", "size": 10, "order": { "time": "asc" } }, "aggs": { "time": { "max": { "field": "timestamp" } } } } } }
要回复问题请先登录或注册
8 个回复
rochy - rochy_he
赞同来自:
https://www.elastic.co/guide/e ... .html
qqq1234567
赞同来自:
rochy - rochy_he
赞同来自:
qqq1234567
赞同来自:
select distinct(code) from (select * from user where age=7) order by age这样的
qqq1234567
赞同来自:
"aggregations" : {
"titleCard" : {
"terms" : {
"field" : "title"
},
"aggregations" : {
"title_top" : {
"top_hits" : {
"sort" : [
{
"time" : {
"order" : "desc"
}
}
]
}
}
}
}
}
只是需要在最后用其他字段排序
rochy - rochy_he
赞同来自:
具体参考:https://www.elastic.co/guide/e ... .html
qqq1234567
赞同来自:
zz_hello
赞同来自: