完成分布式搜索后,初始查询将转发到我们正在查询的特定集合中的所有分片。
我的问题是,哪台机器对分片结果进行聚合?
是接收初始请求的机器吗?
You're right. Moreover, there are several stages, all of which are managed by the same node: 1. Send to all shards (one member of each), gather paged results and create a single page of them 2. If grouping is enabled, request grouped results from corresponding shards 3. Request field values from the shards which hold the final set of documents