*The SolrServer is initialized to the server to which you want to send the request. It has nothing to do with distributed search by itself.*
But isn't the request sent to all the shards ? We set all the shard urls in the 'shards' parameter of our HttpRequest.Or is it something like the request is first sent to the server (with which SolrServer is initialized) and from there it is sent to all the other shards ? Regards Rahul On Tue, Aug 4, 2009 at 2:29 PM, Shalin Shekhar Mangar < shalinman...@gmail.com> wrote: > On Tue, Aug 4, 2009 at 11:26 AM, Rahul R <rahul.s...@gmail.com> wrote: > > > Philip, > > I cannot answer your question, but I do have a question for you. Does > > aggregation happen at the primary shard ? For eg : if I have three JVMs > > JVM 1 : My application powered by Solr > > JVM 2 : Shard 1 > > JVM 3 : Shard 2 > > > > I initialize my SolrServer like this > > SolrServer _solrServer = *new* CommonsHttpSolrServer(shard1); > > > > Does aggregation now happen at JVM 2 ? > > > Yes. > > > > Is there any other reason for > > initializing the SolrServer with one of the shard URLs ? > > > > The SolrServer is initialized to the server to which you want to send the > request. It has nothing to do with distributed search by itself. > > -- > Regards, > Shalin Shekhar Mangar. >