Re: Solrcore.properties variable question.
> Hi, > > 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 > solrcore.properties so that an script is able to add cores without > changing the solrcore.properties using a hack like this: > > enable.master=false > enable.slave=true > master_url=http://master_solr:8983/solr/${solr.core.name} > > Our idea is to have solr.core.name 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? For the slaves, put the master url right in the solrconfig.xml file, with the solr.core.name variable. I know this works. I've used this exact configuration. Thanks, Shawn
Solrcore.properties variable question.
Hi, 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 solrcore.properties so that an script is able to add cores without changing the solrcore.properties using a hack like this: enable.master=false enable.slave=true master_url=http://master_solr:8983/solr/${solr.core.name} Our idea is to have solr.core.name 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? Thanks, Guido.
Re: Solrcore.properties variable question.
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 > solrcore.properties so that an script is able to add cores without > changing the solrcore.properties using a hack like this: > > enable.master=false > enable.slave=true > master_url=http://master_solr:8983/solr/${solr.core.name} > > Our idea is to have solr.core.name 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 core.properties (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. https://issues.apache.org/jira/browse/SOLR/ You can use the solr.core.name 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. Thanks, Shawn
Solrcore.properties variable question.
Hi, 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 solrcore.properties so that an script is able to add cores without changing the solrcore.properties using a hack like this: enable.master=false enable.slave=true master_url=http://master_solr:8983/solr/${solr.core.name} Our idea is to have solr.core.name 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? Thanks, Guido.