> And I added following things in Slave solrconfig.xml, > > <requestHandler name="/replication" > class="solr.ReplicationHandler" > > <lst name="slave"> > <str > name="masterUrl">http://172.16.17.64:8080/ndxservice/registry/replication/</str> > <str > name="pollInterval">00:00:60</str> > </lst> > </requestHandler> > > So, my problem is, I want to avoid the hot coded masterUrl. > It should be coming by dynamically, how it is possible? > Because I am testing with different environment > (i.e)BETA,UAT,PROD so I dont > want to change that setting manually for every war.
May be you can use solrcore.properties file for this. http://search-lucene.com/m/vUmKw17NnUj