lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul <p...@nines.org>
Subject Setting up two cores in solr.xml for Solr 4.0
Date Tue, 04 Sep 2012 18:50:27 GMT
I'm trying to set up two cores that share everything except their
data. (This is for testing: I want to create a parallel index that is
used when running my testing scripts.) I thought that would be
straightforward, and according to the documentation, I thought the
following would work:

<cores adminPath="/admin/cores" host="${host:}" hostPort="${jetty.port:}">
  <core name="MYCORE" instanceDir="MYCORE" />
  <core name="MYCORE_test" instanceDir="MYCORE">
    <property name="dataDir" value="MYCORE_test" />
   </core>
</cores>

I thought that would create a directory structure like this:

solr
  MYCORE
    conf
    data
      index
    MYCORE_test
      index

But it looks like both of the cores are sharing the same index and the
MYCORE_test directory is not created. In addition, I get the followin
in the log file:

INFO: [MYCORE_test] Opening new SolrCore at solr/MYCORE/,
dataDir=solr/MYCORE/data/
...
WARNING: New index directory detected: old=null new=solr/MYCORE/data/index/

What am I not understanding?

Mime
View raw message