跟进此问题Elasticsearch - Is it possible to collapse first then aggregate data of a nested field?。当存在太多组和太多人时,ElasticSearch无法聚合人。"failures": [ { "node": "94vFxNrZQjakNB6fRClHUA", "index": "test", "reason": { "reason": "Index 129 out of bounds for length 129", "type": "array_index_out_of_bounds_exception" }, "shard": 3 } ]
在我的例子中,可能有数千个组,每个组可以包含多个人。
1条答案
按热度按时间zz2j4svz1#
在top_hits中添加排序解决了该问题。