lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: variable question.
Date Mon, 12 May 2014 12:50:33 GMT
On 5/8/2014 2:01 AM, Guido Medina wrote:
> We have a couple of Solr servers acting as master and slave, and each
> server have the same amount of cores, we are trying to configure the
> so that an script is able to add cores without
> changing the using a hack like this:
> enable.master=false
> enable.slave=true
> master_url=http://master_solr:8983/solr/${}
> Our idea is to have to be the dynamic variable, but once
> we go to admin, the master URL is not showing the last part, is there a
> format error or something trivial I'm missing?

This works in solrconfig.xml, but I have never tried it in (with the new solr.xml format).

I don't know if the fact that the property doesn't work in a properties
file is a bug or not, but I would advise opening a new issue in Jira.
You need an account on the Apache Jira install.

You can use the property in master URL in the replication
handler in solrconfig.xml for sure.  I used to do this a long time ago
when I was using replication.  It proved much more advantageous to
update each index copy independently, so replication is no longer used.


View raw message