lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul R <rahul.s...@gmail.com>
Subject Re: Rotating the primary shard in /solr/select
Date Tue, 04 Aug 2009 09:07:37 GMT
*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 <
shalinmangar@gmail.com> wrote:

> On Tue, Aug 4, 2009 at 11:26 AM, Rahul R <rahul.solr@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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message