请问elasticsearch中,既有size 又有排序,是先排序,后取值;还是先取值,然后再排序
{
"from" : 0,
"size" : 100,
"query" : {
},
"sort" : [ {
"age" : {
"order" : "asc"
}
} ]
}
{
"from" : 0,
"size" : 100,
"query" : {
},
"sort" : [ {
"age" : {
"order" : "asc"
}
} ]
}
1 个回复
laoyang360 - 《一本书讲透Elasticsearch》作者,Elastic认证工程师 [死磕Elasitcsearch]知识星球地址:http://t.cn/RmwM3N9;微信公众号:铭毅天下; 博客:https://elastic.blog.csdn.net
赞同来自:
https://www.elastic.co/guide/e ... rting