lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From veena rani <veenara...@gmail.com>
Subject Re: Setting up two cores in solr.xml for Solr 4.0
Date Wed, 05 Sep 2012 06:58:39 GMT
<cores adminPath="/admin/cores">
    <core name="core0" instanceDir="core0" />
    <core name="core1" instanceDir="core1" />
  </cores>
try the above code snippet , in solr.xml.
But it works on Tomcat.

On Wed, Sep 5, 2012 at 1:10 AM, Chris Hostetter <hossman_lucene@fucit.org>wrote:

>
> :   <core name="MYCORE_test" instanceDir="MYCORE" dataDir="MYCORE_test" />
>
> I'm pretty sure what you hav above tells solr that core MYCORE_test it
> should use the instanceDir MYCORE but ignore the <dataDir/> in that
> solrconfig.xml and use the one you specified.
>
> This on the other hand...
>
> : >   <core name="MYCORE_test" instanceDir="MYCORE">
> : >     <property name="dataDir" value="MYCORE_test" />
> : >    </core>
>
> ...tells solr that the MYCORE_test SolrCore should use the instanceDir
> MYCORE, and when parsing that solrconfig.xml file it should set the
> variable ${dataDir} to be "MYCORE_test" -- but if your solconfig.xml file
> does not ever refer to the  ${dataDir} variable, it would have any effect.
>
> so the question becomes -- what does your solrconfig.xml look like?
>
>
> -Hoss
>



-- 
Regards,
Veena.
Banglore.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message