You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2009/03/16 22:03:28 UTC

[Solr Wiki] Update of "SpellCheckComponent" by OtisGospodnetic

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 OtisGospodnetic:
http://wiki.apache.org/solr/SpellCheckComponent

------------------------------------------------------------------------------
  
  = Implementing a QueryConverter =
  
- The QueryConverter is an abstract base class defining a method for converting input "raw" queries into a set of tokens for spell checking.  It is usedto "parse" the CommonParams.Q (the input query) and converts it to tokens.  It is only invoked for the CommonParams.Q parameter, and not the "spellcheck.q" parameter.  Systems that use their own query parser or those that find issue with the basic implementation will want to implement their own QueryConverter instead of using the provided implementation (SpellingQueryConverter) by overriding the appropriate methods on the SpellingQueryConverter and registering it in the solrconfig.xml via:
+ The QueryConverter is an abstract base class defining a method for converting input "raw" queries into a set of tokens for spell checking.  It is used to "parse" the CommonParams.Q (the input query) and convert it to tokens.  It is only invoked for the CommonParams.Q parameter, and not the "spellcheck.q" parameter.  Systems that use their own query parser or those that find issues with the basic implementation will want to implement their own QueryConverter.  Instead of using the provided implementation (SpellingQueryConverter), they should override the appropriate methods on the SpellingQueryConverter in their custom QueryConverter and register it in the solrconfig.xml via:
  {{{
  <queryConverter name="queryConverter" class="org.apache.solr.spelling.SpellingQueryConverter"/>
  }}}