So I think I ought to be able to set up a particular solr core to use a different file for solrconfig.xml.

(The reason I want to do this is so I can have master and slave in replication have the exact same repo checkout for their conf directory, but have the master using a different solrconfig.xml, one set up to be master.)

Solr 1.4.1, using this for guidance: http://wiki.apache.org/solr/CoreAdmin

But no matter what I try, while I get no errors in the log file (should I be looking for errors somewhere else?), the core doesn't successfully come up.

I am trying in the solr.xml, to do this:

<core name="master_prod" instanceDir="master_prod" config="master-solrconfig.xml">
<property name="dataDir" value="/opt/solr/solr_indexer/master_prod/data" />
</core>

Or I try this instead:

<core name="master_prod" instanceDir="master_prod" config="master-solrconfig.xml">
<property name="dataDir" value="/opt/solr/solr_indexer/master_prod/data" />
<property name="configName" value="master-solrconfig.xml" />
</core>

With either of these, in the log file things look like they started up succesfully.... but it doesn't appear to actually be so, the core is actually inaccessible. Maybe there's an error in my master-solrconfig.xml, but I don't think so, and there's nothing in the log on that either. Or maybe I'm not doing things right as far as telling it to use the 'config file' solrconfig.xml in a different location.

Can anyone confirm for me that this is possible, and what the right way to try and do it is?

Reply via email to