Skip to content
This repository has been archived by the owner on Dec 22, 2022. It is now read-only.

Commit

Permalink
Updated solrconfig.xml, replacing Sam's updates which I whacked on pr…
Browse files Browse the repository at this point in the history
…evious commit, and removing the /update and /replication requestHandlers, which were duplicates
  • Loading branch information
nmacgreg committed May 8, 2015
1 parent 2806a66 commit 01ace15
Showing 1 changed file with 7 additions and 69 deletions.
76 changes: 7 additions & 69 deletions solr/blacklight-core/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
It is *not* a good example to work from.
-->
<config>
<luceneMatchVersion>4.9</luceneMatchVersion>
<luceneMatchVersion>LUCENE_4.9</luceneMatchVersion>
<!-- The DirectoryFactory to use for indexes.
solr.StandardDirectoryFactory, the default, is filesystem based.
solr.RAMDirectoryFactory is memory based, not persistent, and doesn't work with replication. -->
Expand All @@ -30,6 +30,12 @@
<!-- Neil -->
<lib dir="/opt/solr/lib/contrib/analysis-extras/lib" />
<lib dir="/opt/solr/lib/contrib/analysis-extras/lucene-libs" />
<!-- Neil,end -->

<!-- Sam - for dev -->
<lib dir="../lib/contrib/analysis-extras/lib" />
<lib dir="../lib/contrib/analysis-extras/lucene-libs" />
<!-- Sam - for dev, end -->

<dataDir>${solr.blacklight-core.data.dir:}</dataDir>

Expand All @@ -43,7 +49,6 @@
<requestHandler name="/analysis/field" startup="lazy" class="solr.FieldAnalysisRequestHandler" />
<requestHandler name="/update" class="solr.UpdateRequestHandler" />

<!-- Neil -->
<updateHandler class="solr.DirectUpdateHandler2">
<updateLog>
<str name="dir">${solr.data.dir:}</str>
Expand Down Expand Up @@ -501,37 +506,6 @@
</lst>
</requestHandler>


<!-- Update Request Handler.
http://wiki.apache.org/solr/UpdateXmlMessages
The canonical Request Handler for Modifying the Index through
commands specified using XML, JSON, CSV, or JAVABIN
Note: Since solr1.1 requestHandlers requires a valid content
type header if posted in the body. For example, curl now
requires: -H 'Content-type:text/xml; charset=utf-8'
To override the request content type and force a specific
Content-type, use the request parameter:
?update.contentType=text/csv
This handler will pick a response format to match the input
if the 'wt' parameter is not explicit
-->
<requestHandler name="/update" class="solr.UpdateRequestHandler">
<!-- See below for information on defining
updateRequestProcessorChains that can be used by name
on each Update Request
-->
<!--
<lst name="defaults">
<str name="update.chain">dedupe</str>
</lst>
-->
</requestHandler>

<!-- Admin Handlers
Admin Handlers - This will register all the standard admin
Expand All @@ -549,42 +523,6 @@
<requestHandler name="/admin/file" class="solr.admin.ShowFileRequestHandler" >
-->

<!-- 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.
-->
<!--
<lst name="master">
<str name="replicateAfter">commit</str>
<str name="replicateAfter">startup</str>
<str name="confFiles">schema.xml,stopwords.txt</str>
</lst>
-->
<!--
<lst name="slave">
<str name="masterUrl">http://your-master-hostname:8983/solr</str>
<str name="pollInterval">00:00:60</str>
</lst>
-->
</requestHandler>


<!-- Neil imported these selected Request Handlers from Henry's "collection1", the default in solrCloud *** END ***-->


Expand Down

0 comments on commit 01ace15

Please sign in to comment.