: You could add 'enable' flag in the solrconfig.xml and then
: enable/disable it differently on different servers:

Off the top of my head, i'm not certain if enable="false" on a "/update" 
handler will actaully do what the user wants -- it might prevent a handler 
from existing at that path; but i *think* the logic that creates implicit 
UpdateHandlers may still cause an implicit /update handler to be created
in that case? not certain.

The NotFoundRequestHandler on the other hand, was created explicitly for 
the purpose of being able to register it to paths where you just want to 
reject requests and over ride any implicit handler that might otherwise 
exist...

<requestHandler name="/update" enable="${iam.slave}" 
class="solr.NotFoundRequestHandler" />
<requestHandler name="/update" enable="${iam.master}" 
class="solr.UpdateRequestHandler" />



-Hoss
http://www.lucidworks.com/

Reply via email to