Re: Solr Shard - Strange results

2010-05-20 Thread TonyBray

I know this post is old but did you ever get a resolution to this problem?  I
am running into the exact same issue.  I even switched my id from "text" to
"string" and reindexed as that was the last suggestion and still no
resolution.

--Tony
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Shard-Strange-results-tp496373p832844.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Solr Shard - Strange results

2010-05-20 Thread TonyBray

So are we the only ones who never got sharding working with multi-cores? 
Bummer...  Hopefully someone else will chime in with an answer.

--Tony
-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Shard-Strange-results-tp496373p832863.html
Sent from the Solr - User mailing list archive at Nabble.com.


No hits returned from shard search on multi-core setup

2010-05-21 Thread TonyBray

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:

 
 
 
  

 



Core0 search:

http://localhost:8080/solr/core0/select/?q=*:*&version=2.2&start=0&rows=10&indent=on

results:

   
- 
- 
  0 
  0 
- 
  10 
  0 
  on 
  *:* 
  2.2 
  
  
- 
- 
...

Core1 search:

http://localhost:8080/solr/core1/select/?q=*:*&version=2.2&start=0&rows=10&indent=on

results:

   
- 
- 
  0 
  16 
- 
  10 
  0 
  on 
  *:* 
  2.2 
  
  
- 
- 
...

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:

   
- 
- 
  0 
  31 
- 
  10 
  0 
  on 
  *:* 
  localhost:8080/solr/core0,localhost:8983/solr/core1 
  2.2 
  
  
   
  
  
Notice no '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.