es 是不是不能能 AggregationBuilders.terms 的字段进行排序,用了后报这个错。 Buckets can only be sorted on a sub-aggregator path that is built out of zero or more single-bucket aggregations within the path and a final single-bucket or a metrics aggregation at the path end
|      1456789      2021-03-10 10:36:24 +08:00 插眼问下 有没有好的使用 es 的例子,主要是对 RestHighLevelClient 的关闭管理这里想看看有没有好的 | 
|  |      3sinux      2021-03-10 14:22:58 +08:00 没 query 不太懂想怎么排序。建议看看  bucket sort aggregation  那部分 。 |