Question

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?

Était-ce utile?

La solution

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

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top