Permalink
Browse files

default request handler /select uses the spell checker component

  • Loading branch information...
dcrec1 committed Feb 2, 2010
1 parent 39c1049 commit 6823b454d8848578dcafeb68e9ea527de5083765
Showing with 7 additions and 4 deletions.
  1. +7 −4 solr/conf/solrconfig.xml
View
@@ -423,14 +423,18 @@
<requestHandler name="standard" class="solr.SearchHandler" default="true">
<!-- default values for query parameters -->
<lst name="defaults">
- <str name="echoParams">explicit</str>
+ <str name="echoParams">explicit</str>
<str name="json.nl">map</str>
<!--
<int name="rows">10</int>
<str name="fl">*</str>
<str name="version">2.1</str>
-->
</lst>
+
+ <arr name="last-components">
+ <str>spellcheck</str>
+ </arr>
</requestHandler>
<!-- Please refer to http://wiki.apache.org/solr/SolrReplication for details on configuring replication -->
@@ -593,13 +597,12 @@
<str name="spellcheckIndexDir">./spellchecker1</str>
</lst>
+
<lst name="spellchecker">
<str name="name">jarowinkler</str>
<str name="field">spell</str>
- <!-- Use a different Distance Measure -->
<str name="distanceMeasure">org.apache.lucene.search.spell.JaroWinklerDistance</str>
<str name="spellcheckIndexDir">./spellchecker2</str>
-
</lst>
<lst name="spellchecker">
@@ -864,7 +867,7 @@
<!-- localsolr request handler -->
<searchComponent name="localsolr" class="com.pjaol.search.solr.component.LocalSolrQueryComponent"/>
<searchComponent name="geofacet" class="com.pjaol.search.solr.component.LocalSolrFacetComponent"/>
-
+
<requestHandler name="geo" class="org.apache.solr.handler.component.SearchHandler">
<arr name="components">
<str>localsolr</str>

0 comments on commit 6823b45

Please sign in to comment.