Hello, 
What we have done is created multiple solr instances on the same server,
where each instance is created with the DataImportHandler from a different
DB.  The information on each DB is similar, so the schema's for each
instance are pretty much the same.  Our goal is to use the shards feature to
combine the results into a single table.

The problem is that when we use shards, the "numFound" is acting very
strangely.  Here are some examples:

2 solr instances:
localhost:8080/alpha/
localhost:8080/bravo/

Lets say i'm searching for the term "fred".  If I do:

localhost:8080/alpha/select?q=fred&rows=10&start=0
I get numFound="0".  That's fine

localhost:8080/bravo/select?q=fred&rows=10&start=0
I get: <result name="response" numFound="27" start="0">  Followed by 10
<doc></doc>'s.  This is also fine.

When i do these [same result for both]:
localhost:8080/alpha/select?q=fred&rows=10&start=0&shards=localhost:8080/alpha,localhost:8080/bravo
localhost:8080/bravo/select?q=fred&rows=10&start=0&shards=localhost:8080/alpha,localhost:8080/bravo

I get: <result name="response" numFound="18" start="0">  followed by 1
<doc></doc>

So... something weird happened... There should be 27 results, but even if it
thought there were only 18 results, it should have displayed 10 of them.


Alright, so I tried:

localhost:8080/alpha/select?q=fred&rows=1&start=0&shards=localhost:8080/alpha,localhost:8080/bravo
localhost:8080/bravo/select?q=fred&rows=1&start=0&shards=localhost:8080/alpha,localhost:8080/bravo

I got: <result name="response" numFound="27" start="0">  followed by 1
<doc></doc>
Seems to be working alright with this...  But lets try...

localhost:8080/alpha/select?q=fred&rows=1&start=1&shards=localhost:8080/alpha,localhost:8080/bravo
localhost:8080/bravo/select?q=fred&rows=1&start=1&shards=localhost:8080/alpha,localhost:8080/bravo

I got: <result name="response" numFound="26" start="1">  with no
<doc></doc>'s... wtf?

I continued this up to start=10, and numFound decreased by 1 every time,
with no more <doc></doc>'s.
So i changed it to rows=100&start=0 and i got:  <result name="response"
numFound="2" start="0"> followed by 2 <doc></doc>'s.

This issue is happening with multiple search queries, however with some
other search queries, it works fine and returns the proper number for
numFound, and however many <doc>'s there are supposed to be.

Has anyone seen this issue before?

-- 
View this message in context: 
http://www.nabble.com/Solr-Shard---Strange-results-tp23561201p23561201.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to