Re: Querying a specific core in solr cloud

2013-08-05 Thread Erick Erickson
bq: This should be a bug right? I actually don't think so, although one can argue it either way. The point of SolrCloud is to try to work as robustly as possible. &distrib=false is intended to be a debugging tool rather than something that's part of "normal" operation IMO. If you really want to u

Re: Querying a specific core in solr cloud

2013-08-04 Thread vicky desai
Hi Erik, I did check the logs and request is going to ip1 if core is not present on ip2. This should be a bug right? -- View this message in context: http://lucene.472066.n3.nabble.com/Querying-a-specific-core-in-solr-cloud-tp4079964p4082454.html Sent from the Solr - User mailing list archiv

Re: Querying a specific core in solr cloud

2013-07-27 Thread Erick Erickson
Not quite sure what's happening here. It would be interesting to see whether the requests are actually going to the right IP, by tailing out the logs. It _may_ be that the &distrib=false isn't honored if there is no core on the target machine (I haven't looked at the code). To test that, go ahead

Re: Querying a specific core in solr cloud

2013-07-26 Thread vicky desai
Hi Erick, First Of all sorry for the late reply. The scenario is as follows 1. Create a solr set up on two machines say (ip1 and ip2) with shard=1 and external zoo-keeper 2. Now if i create a core x on machine with ip1 only and use the query http://ip1:port1/solr/x/select?q=*:*&distrib=false htt

Re: Querying a specific core in solr cloud

2013-07-25 Thread Erick Erickson
Vicky: Please define "&distrib=false doesn't work". _What_ doesn't work? What are the symptoms? It could be a bug or it could be a misunderstanding, I have no way of even guessing. Best Erick On Thu, Jul 25, 2013 at 3:52 AM, vicky desai wrote: > Hi, > > I have also noticed that once I put the c

Re: Querying a specific core in solr cloud

2013-07-25 Thread vicky desai
Hi, I have also noticed that once I put the core up on both the machine &distrib=false works well. could this be a possible bug that when a core is down on one instance &distrib=false doesnt work -- View this message in context: http://lucene.472066.n3.nabble.com/Querying-a-specific-core-in-so

Re: Querying a specific core in solr cloud

2013-07-25 Thread vicky desai
Hi Erik, Thanks for the reply But does &distrib=true work for replicas as well. As i mentioned earliear I have a set up of 1 leader and 1 replica. If a core is up on either of the instances querying to both the instances gives me results even with &distrib=false -- View this message in contex

Re: Querying a specific core in solr cloud

2013-07-24 Thread Erick Erickson
You're mixing a couple of things here. 1> With SolrCloud, you don't need to specify shards. That's only really for non-SolrCloud mode. 2> You can add &distrib=false to your query to only return the results from the node you direct the query to. e.g. http://localhost:7574/solr/collection1/select?

Re: Querying a specific core in solr cloud

2013-07-24 Thread vicky desai
I m not bothered about the leader. I just want to check if a particluar core is up on a particular solr instance. My Use case is as follows I have to create a core on one instance and then there is some DB code. If after creating the core the DB action fails then the entire task is repeated again.

Re: Querying a specific core in solr cloud

2013-07-24 Thread Anshum Gupta
Can I get more insight into why you'd want to query a specific replica? Also, leader election is dynamic in SolrCloud, so unless you have a ZK aware client (CloudSolrServer) you may not be hitting the leader when you think you are. Having said that, why would you be bothered with 'who's the leader'