سؤال

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