:               <str name="enable">${enable.slave:false}</str>
:                       <str
: name="masterUrl">http://localhost:8080/ndxservice/registry/replication</str>
        ...
: In above config, I did the enable/disable of solr/master using
: solrcore.properties file,
: but I want set up the masterUrl from java code or my app setting.xml. How it
: is really possible?

exactly the same way, something like...

<str 
name="masterUrl">${master.replication.url:http://default-url:8080/solr/replication}</str>

...and then specify master.replication.url at run time the same way you 
specify enable.slave.



-Hoss

Reply via email to