> Ok. > I can set it so: > <requestHandler name="/update" class="solr.XmlUpdateRequestHandler" > enable="${solr.enable.master:true}"/> > > But how without restarting Tomcat can I change solr.enable.master from true > to false ??
That's an exercise left to the reader :) Honestly, I don't think you need to. Why would you? The handler does not do anything if never called. >> But I don't see why you need to disable it. >> You will anyway need to stop sending updates to the old master yourself. >> Disabling the handler like this will cause an exception if you try to call > it because it will not be registered. > > I have a buffer in the application. So I do not have it off. > I have to switch automatically, without administrator intervention. > > Application is switching from one location to other and solr must > automatically follow the application. One Solr server does not know about the other, so you do not need to "switch" anything on the Solr side. You simply need to design your client in such a way that it handles the operations in correct order and timing, i.e. that it pauses all feeding until replication is done, then feeds to the new master instead of the old. -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com