Which version of solr are you using?
I believe this is only available on trunk, not even on 1.4.1 (SOLR-1722).  
Also, watch out for SOLR-2127 bug, haven't gotten around to creating a patch 
yet...

Ephraim Ofir


-----Original Message-----
From: Ron Chan [mailto:rc...@i-tao.com] 
Sent: Wednesday, October 13, 2010 9:20 AM
To: solr-user@lucene.apache.org
Subject: multicore defaultCoreName not working

Hello 

I have this in my solr.xml

<solr persistent="true" sharedLib="lib">
  <cores adminPath="/admin/cores" defaultCoreName="live">
    <core name="live" instanceDir="core0" />
    <core name="staging" instanceDir="core1" />
  </cores>
</solr>


admin is working and the individual cores are working through

http://localhost:8080/solr/live/select/?q=abc
and
http://localhost:8080/solr/staging/select/?q=abc

returning the correct results from the right core

however, I wanted to keep the existing single core URLs and thought that the 
defaultCoreName attribute does this

i.e.
http://localhost:8080/solr/select/?q=abc

should give me the "live" core

but it gives me "Missing core name in path"

Is there anything else I need to do?

Thanks
Ron

Reply via email to