I cannot get hits back and do not get a correct total number of records when using shard searching. I have 2 cores, core0 and core1. Both have the same schema.xml and solrconfig.xml (different datadirs in solrconfig.xml). Our id field contains globally unique id's across both cores, but they use the same id field (same schema.xml). Issue exists when testing with Jetty and Tomcat. Using Solr 1.4.1. I found two other instances of this exact error on Google and neither have a solution, just a description like mine with lots of responses. Multi-core searching is something we need due to data layout including multiple languages.
Details: Folder layout: C:\apache-solr-1.4.0\example\solr_multicore\solr\cores core0\data core0\conf core1\data core1\conf solr.xml My solr.xml: <?xml version="1.0" encoding="UTF-8" ?> <!-- snip the comments from Apache wiki --> <solr persistent="true" sharedLib="lib"> <cores adminPath="/admin/cores"> <core name="core0" instanceDir="core0" /> <core name="core1" instanceDir="core1" /> </cores> </solr> Core0 search: http://localhost:8080/solr/core0/select/?q=*:*&version=2.2&start=0&rows=10&indent=on results: <?xml version="1.0" encoding="UTF-8" ?> - <response> - <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">0</int> - <lst name="params"> <str name="rows">10</str> <str name="start">0</str> <str name="indent">on</str> <str name="q">*:*</str> <str name="version">2.2</str> </lst> </lst> - <result name="response" numFound="131" start="0"> - <doc> ... Core1 search: http://localhost:8080/solr/core1/select/?q=*:*&version=2.2&start=0&rows=10&indent=on results: <?xml version="1.0" encoding="UTF-8" ?> - <response> - <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">16</int> - <lst name="params"> <str name="rows">10</str> <str name="start">0</str> <str name="indent">on</str> <str name="q">*:*</str> <str name="version">2.2</str> </lst> </lst> - <result name="response" numFound="302" start="0"> - <doc> ... Shard'd search: http://localhost:8080/solr/core0/select?q=*%:*&version=2.2&start=0&rows=10&indent=on&shards=localhost:8080/solr/core0,localhost:8080/solr/core1 results: <?xml version="1.0" encoding="UTF-8" ?> - <response> - <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">31</int> - <lst name="params"> <str name="rows">10</str> <str name="start">0</str> <str name="indent">on</str> <str name="q">*:*</str> <str name="shards">localhost:8080/solr/core0,localhost:8983/solr/core1</str> <str name="version">2.2</str> </lst> </lst> <result name="response" numFound="423" start="0" /> </response> Notice no <doc>'s. numFound does not equal total for both cores (131+302=433). Query info from Catalina.log: May 21, 2010 12:27:32 PM org.apache.solr.core.SolrCore execute INFO: [core0] webapp=/solr path=/select params={wt=javabin&isShard=true&rows=10&start=0&fsv=true&q=*:*&fl=sedocid,score&version=1} hits=131 status=0 QTime=0 May 21, 2010 12:27:32 PM org.apache.solr.core.SolrCore execute INFO: [core1] webapp=/solr path=/select params={wt=javabin&isShard=true&rows=10&start=0&fsv=true&q=*:*&fl=sedocid,score&version=1} hits=302 status=0 QTime=0 May 21, 2010 12:27:32 PM org.apache.solr.core.SolrCore execute INFO: [core0] webapp=/solr path=/select params={wt=javabin&isShard=true&rows=10&start=0&ids=core0_IM10009_0,core0_IM10006_0,core0_IM10002_0,core0_IM10010_0,core0_IM10007_0,core0_IM10004_0,core0_IM10001_0,core0_IM10003_0,core0_IM10008_0,core0_IM10005_0&q=*:*&version=1} status=0 QTime=0 May 21, 2010 12:27:32 PM org.apache.solr.core.SolrCore execute INFO: [core0] webapp=/solr path=/select params={rows=10&start=0&indent=on&q=*:*&shards=localhost:8080/solr/core0,localhost:8080/solr/core1&version=2.2} status=0 QTime=172 -- View this message in context: http://lucene.472066.n3.nabble.com/No-hits-returned-from-shard-search-on-multi-core-setup-tp835169p835169.html Sent from the Solr - User mailing list archive at Nabble.com.