Hi,
----- Original Message ---- > From: Ahmet Arslan <iori...@yahoo.com> > Subject: disable replication in a persistent way > > Hello, > > solr/replication?command=disablepoll disables replication on slave(s). > However >it is not persistent. After solr/tomcat restart, slave(s) will continue >polling. > > > Is there a built-in way to disable replication on slave side in a persistent >manner? Not that I know of. Hoss or somebody else will correct me if I'm wrong :) > Currently I am using system property substitution along with >solrcore.properties file to simulate this. > > <lst name="slave"> > <str name="enable">${enable.slave:false}</str> > > #solrcore.properties in slave > enable.master=true > > And modify solrcore.properties with a custom solr request handler after the >disablepoll command, to make it persistent. It seems that there is no >existing >mechanism to write solrconfig.properties file, am I correct? What about modifying the existing classes (the one/ones that handle the disablepoll command) to take another param: persist=true|false ? Would that be better than a custom Solr request handler that requires a separate call? Otis ---- Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch Lucene ecosystem search :: http://search-lucene.com/