Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by GrantIngersoll:
http://wiki.apache.org/solr/SpellCheckComponent

------------------------------------------------------------------------------
  [[Anchor(solrFieldSpellChecker)]]
  {{{
  <searchComponent name="spellcheck" 
class="org.apache.solr.handler.component.SpellCheckComponent">
+   
-     <!-- 
-          This section provides the default values for the request parameters.
-          These are overridden if the parameter is present in the request
-     -->
-     <lst name="defaults">
-       <!-- Only More Popular -->
-       <str name="spellcheck.onlyMorePopular">false</str>
-       <!-- Extended Results -->
-       <str name="spellcheck.extendedResults">false</str>
-       <!-- The number of suggestions to return -->
-       <str name="spellcheck.count">1</str>
-     </lst>
-     
      <lst name="spellchecker">
        <!-- Optional, it is required when more than one spellchecker is 
configured -->
        <str name="name">default</str>
@@ -64, +52 @@

     to strip off field markup, boosts, ranges, etc. but it is not guaranteed 
to match an exact parse from the query parser. 
     -->
  <queryConverter name="queryConverter" 
class="org.apache.solr.spelling.SpellingQueryConverter"/>
+ 
+ <!--  Add to a RequestHandler -->
+ <requestHandler name="/spellCheckCompRH" 
class="org.apache.solr.handler.component.SearchHandler">
+     <lst name="defaults">
+       <!-- omp = Only More Popular -->
+       <str name="spellcheck.onlyMorePopular">false</str>
+       <!-- exr = Extended Results -->
+       <str name="spellcheck.extendedResults">false</str>
+       <!--  The number of suggestions to return -->
+       <str name="spellcheck.count">1</str>
+     </lst>
+     <arr name="last-components">
+       <str>spellcheck</str>
+     </arr>
+   </requestHandler>
+ 
  }}}
  
  Multiple "spellchecker" instances can be configured in the same way. The 
currently available spellchecker implementations are:

Reply via email to