The "mergeIds" method of the QueryComponent does the actual merging of the docs from the shards.
Joel Bernstein Search Engineer at Heliosearch On Sun, Jun 8, 2014 at 1:31 AM, Phanindra R <phani...@gmail.com> wrote: > Hi, > > In Solr in Action book, I read how the distributed queries work. Looks > like the node that receives the request executes a search, sends queries to > other shards in parallel, and then finally merges the results. > > I've been trying to find where that piece of code exists. > > 1) Does the distributed functionality handled in the Solr web-layer or at > the core-level? > > 2) It'd be great if you could also provide me the exact class(es) that take > care of making distributed queries and merging the results. > > Thanks. >