[ 
https://issues.apache.org/jira/browse/SOLR-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12614101#action_12614101
 ] 

Erik Hatcher commented on SOLR-637:
-----------------------------------

The solr.data.dir technique _should_ be supported by the multicore.xml as well. 
 Maybe it is a misunderstanding of how -Dsolr.data.dir works?    It works by 
having a ${solr.data.dir} or ${solr.data.dir:<default value>} spelled out in 
any of the config files, even schema.xml.   So I believe it should work to be 
able to craft a multicore.xml as follows:

<multicore adminPath="/admin/multicore" persistent="true" >
  <core name="core0" instanceDir="${root.dir}/core0" />
  <core name="core1" instanceDir="${root.dir}/core1" />
</multicore>

And launch with -Droot.dir=whatever

Could you confirm whether that works for you?   Of course the value of the 
<dataDir> in each of your core's solrconfig.xml is taken into consideration 
also.

[I've not confirmed what I'm typing here, just tossing out how I think it 
currently works - please confirm]

> multicore ignores -Dsolr.data.dir=<dir>
> ---------------------------------------
>
>                 Key: SOLR-637
>                 URL: https://issues.apache.org/jira/browse/SOLR-637
>             Project: Solr
>          Issue Type: Bug
>    Affects Versions: 1.3
>         Environment:  linux x86_64 rhel ibm-java-6 prepackaged jetty
> solr snapshot 7-15-2008 
>            Reporter: Jerry Quinn
>
> If I want to set a directory for index data combined with multicore, I can't 
> do it this way.  If it worked, I'd expect to see something like:
> <dir>/core0/index
> <dir>/core1/index
> ...

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to