On 4/16/2013 2:39 PM, Jie Sun wrote:
Hi Shawn,
I do have persistent="true" in my solr.xml:
<?xml version="1.0" encoding="UTF-8" ?>
<solr persistent="true">
<cores adminPath="/admin/cores">
<core name="default" instanceDir="./"/>
<core name="413a" instanceDir="./"/>
<core name="blah" instanceDir="./"/>
...
</cores>
</solr>
the command I ran was to rename from '413' to '413a'.
I think I see the problem. You have three cores that all point to the
same instanceDir, and no dataDir parameter. Normally the dataDir
parameter defaults to "data" in the instanceDir, but perhaps if you have
multiple cores sharing the instanceDir, it will use the core name
instead. With this solr.xml, I can see why you're having a problem.
The solr.xml file doesn't tell Solr where the dataDir is.
If you set up an explicit dataDir option for each core, then it should
work out the way you expect it to. Here's an excerpt from my solr.xml:
<core name="s0live" instanceDir="/index/solr/cores/s0_1/"
dataDir="/index/solr/data/s0_1"/>
<core name="s0build" instanceDir="cores/s0_0/"
dataDir="../../data/s0_0"/>
You are correct about what happens with my directories on a swap, but
because solr.xml gets updated and has an explicit dataDir for each core,
everything works.
Thanks,
Shawn