Querying all shards for a collection should look familiar; it's as though SolrCloud didn't even come into play:
/http://localhost:8983/solr/collection1/select?q=*:*/ If, on the other hand, you wanted to search just one shard, you can specify that shard, as in: /http://localhost:8983/solr/collection1/select?q=*:*&shards=localhost:7574/solr/ If you want to search a group of shards, you can specify them together: /http://localhost:8983/solr/collection1/select?q=*:*&shards=localhost:7574/solr,localhost:8983/solr/ Or you can specify a list of servers to choose from for load balancing purposes by using the pipe symbol (|): /http://localhost:8983/solr/collection1/select?q=*:*&shards=localhost:7574/solr|localhost:7500/solr/ nabil Kouici wrote > Hi, > I'm trying to get all shards statistics in cloud configuration. I'v used > CoreAdminRequest but the problem is I get statistics for only shards (or > core) in one node (I've 2 nodes): > > String zkHostString = "10.0.1.4:2181"; > CloudSolrServer solrServer= new CloudSolrServer(zkHostString); > CoreAdminRequest request = new CoreAdminRequest(); > request.setAction(CoreAdminAction.STATUS); > CoreAdminResponse cores = request.process(solrServer); > for (int i = 0; i < cores.getCoreStatus().size(); i++) { > > NamedList > ll=cores.getCoreStatus().getVal(i); > System.out.println(ll.toString()); > } > > Any idea? > > Regards, > Nabil. -- View this message in context: http://lucene.472066.n3.nabble.com/CoreAdminRequest-in-SolrCloud-tp4164918p4164941.html Sent from the Solr - User mailing list archive at Nabble.com.