When a distributed search is done, the initial query is forwarded to all shards that are part of the specific collection that we are querying.

My question here is, Which is the machine that does the aggregation for results from shards?

Is the machine which receives the initial request?

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top