Anshul: It doesn't look like you ever got an answer to this question, did you ever find a solution?
I'm not very shard savy, but if the numFound is coming back non-zero, the best guess i have is that somewhere you are overridding the default "rows" param with a value of 0. if that's not it: can you post your requestHandler configurations from solrconfig.xml? that might shed some light on things for people. : Date: Thu, 19 Feb 2009 22:30:19 +0100 : From: Anshul jain : Subject: Shard Query Problem : : Hi, : : I'm using distributed Solr with two machines. : : when I query in URL: http://lca2-s5-pc04:8080/solr/select?&q=name:john : I get <result name="response" numFound="17" start="0"> and 10 documents are : shown. : : when I query in URL: : http://lca2-s5-pc04:8080/solr/select?shards=lca2-s5-pc04:8080/solr&q=name:john : I get <result name="response" numFound="7" start="0"/> and 0 documents are : shown. : : when I query in URL: : http://lca2-s5-pc04:8080/solr/select?shards=lca2-s5-pc04:8080/solr,lca2-s5-pc05:8080/solr&q=name:john : <result name="response" numFound="336" start="0"/> and again 0 documents are : shown. : : I'm not able to figure out why it is not able to use SHARDS for querying and : return documents. Can it be a Solr-config problem?? -Hoss