Re: Verify a certain Replica contains a document

2015-05-18 Thread Anshum Gupta
I just tested out what you've mentioned and see the same behavior. I think it calls for a JIRA and a fix. distrib=false shouldn't consult zk in my opinion, else it makes no sense to have that param. I'm not sure but it might just be regression. Can you create a JIRA? I'll take it up soon if no

Verify a certain Replica contains a document

2015-05-15 Thread Shai Erera
Hi Is there a REST API in Solr that allows me to query a certain Replica/core? I am writing some custom replica-recovery code and I'd like to verify that it works well. I wanted to use the /collection/select API, passing shards=host.under.test:ip/solr/collection, but that also works even if

Re: Verify a certain Replica contains a document

2015-05-15 Thread Anshum Gupta
Did you also try querying /core.name/select with distrib=false ? On Fri, May 15, 2015 at 9:22 PM, Shai Erera ser...@gmail.com wrote: Hi Is there a REST API in Solr that allows me to query a certain Replica/core? I am writing some custom replica-recovery code and I'd like to verify that it

Re: Verify a certain Replica contains a document

2015-05-15 Thread Shai Erera
Yes. Here's what I do: Start two embedded Solr nodes (i.e. like using MiniSolrCloudCluster). They were started on ports 63175 and 63201. Create a collection with one shard and replica. /solr/admin/collections?action=clusterstatus shows it was created on 127.0.0.1:63201_solr. Index a document: