Download Solr Team Report - VTechWorks
Transcript
register the ShowFileRequestHandler using the definition below. NOTE: The glob pattern ('*') is the only pattern supported at present, *.xml will not exclude all files ending in '.xml'. Use it to exclude _all_ updates -‐-‐> <!-‐-‐ <requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" > <lst name="invariants"> <str name="hidden">synonyms.txt</str> <str name="hidden">anotherfile.txt</str> <str name="hidden">*</str> </lst> </requestHandler> -‐-‐> <!-‐-‐ ping/healthcheck -‐-‐> <requestHandler name="/admin/ping" class="solr.PingRequestHandler"> <lst name="invariants"> <str name="q">solrpingquery</str> </lst> <lst name="defaults"> <str name="echoParams">all</str> </lst> <!-‐-‐ An optional feature of the PingRequestHandler is to configure the handler with a "healthcheckFile" which can be used to enable/disable the PingRequestHandler. relative paths are resolved against the data dir -‐-‐> <!-‐-‐ <str name="healthcheckFile">server-‐enabled.txt</str> -‐-‐> </requestHandler> <!-‐-‐ Echo the request contents back to the client -‐-‐> <requestHandler name="/debug/dump" class="solr.DumpRequestHandler"> <lst name="defaults"> <str name="echoParams">explicit</str> <str name="echoHandler">true</str> </lst> </requestHandler> <!-‐-‐ Solr Replication The SolrReplicationHandler supports replicating indexes from a "master" used for indexing and "slaves" used for queries. http://wiki.apache.org/solr/SolrReplication It is also necessary for SolrCloud to function (in Cloud mode, the replication handler is used to bulk transfer segments when nodes are added or need to recover). https://wiki.apache.org/solr/SolrCloud/ -‐-‐> <requestHandler name="/replication" class="solr.ReplicationHandler"> <!-‐-‐ To enable simple master/slave replication, uncomment one of the sections below, depending on whether this solr instance should be the "master" or a "slave". If this instance is a "slave" you will also need to fill in the masterUrl to point to a real machine. -‐-‐> 69