I have a two core multicore setup which currently has identical indices (just
for testing, they will have different data when i deploy the system). I
based this off the example, so core0 and core1. I have customized the
scheme.xml and solrconfig.xml files(core0 and core1 are identical except
that they have different data dirs), and have indexed data in both cores.

I can start them without any errors showing up using: 

java -Dsolr.solr.home=multicore -jar start.jar

I can search against each core correctly. For example, if I do a search for
'bob':
Using
http://192.168.55.101:8983/solr/core0/select/?version=2.1&q=contents:bob&start=0&rows=20000
Returns
<response>
<responseHeader>
<status>0</status>
<QTime>169</QTime>
<lst name="params">
<str name="start">0</str>
<str name="q">contents:bob</str>
<str name="version">2.1</str>
<str name="rows">100</str>
</lst>
</responseHeader>
<result name="response" numFound="793" start="0"> .... etc

The other core:
http://192.168.55.101:8983/solr/core1/select/?version=2.1&q=contents:bob&start=0&rows=20000
Returns
<response>
<responseHeader>
<status>0</status>
<QTime>169</QTime>
<lst name="params">
<str name="start">0</str>
<str name="q">contents:bob</str>
<str name="version">2.1</str>
<str name="rows">100</str>
</lst>
</responseHeader>
<result name="response" numFound="793" start="0"> .... etc


So both of the cores return the same results as I expect (793). However,
when I combine the search I get strange results. Doing the same search with
the shards param:
http://192.168.55.101:8983/solr/core0/select/?shards=192.168.55.101:8983/solr/core0,192.168.55.101:8983/solr/core1&version=2.1&q=contents:bob&start=0&rows=20000

Returns
<response>
<responseHeader>
<status>0</status>
<QTime>378</QTime>
<lst name="params">
<str
name="shards">192.168.55.101:8983/solr/core0,192.168.55.101:8983/solr/core1
</str>
<str name="start">0</str>
<str name="q">contents:bob</str>
<str name="version">2.1</str>
<str name="rows">20000</str>
</lst>
</responseHeader>
<result name="response" numFound="379" start="0">... etc.

So why would I not get the sum of the two cores results?

If it's any help, when I place the shards param in the SearchHandler, Solr
never returns any results(perhaps that is a different issue though?).


-- 
View this message in context: 
http://www.nabble.com/Multicore-Solr-not-returning-expects-results-from-search-tp23623975p23623975.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to