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 ShalinMangar: http://wiki.apache.org/solr/SpellCheckComponent The comment on the change is: Short package names and optional query converters ------------------------------------------------------------------------------ The first step to use SpellCheckComponent is to specify the source of words which should be used for suggestions in [http://wiki.apache.org/solr/SolrConfigXml solrconfig.xml]. The words can be loaded from a field in Solr, text files or even from fields in arbitary Lucene indices. A sample configuration for loading words from a field in Solr looks like the following: [[Anchor(solrFieldSpellChecker)]] {{{ - <searchComponent name="spellcheck" class="org.apache.solr.handler.component.SpellCheckComponent"> + <searchComponent name="spellcheck" class="solr.SpellCheckComponent"> <lst name="spellchecker"> <!-- Optional, it is required when more than one spellchecker is configured --> <str name="name">default</str> <!-- The classname is optional, defaults to IndexBasedSpellChecker --> - <str name="classname">org.apache.solr.spelling.IndexBasedSpellChecker</str> + <str name="classname">solr.IndexBasedSpellChecker</str> <!-- Load tokens from the following field for spell checking, analyzer for the field's type as defined in schema.xml are used @@ -51, +51 @@ </searchComponent> <!-- The SpellingQueryConverter to convert raw (CommonParams.Q) queries into tokens. Uses a simple regular expression - to strip off field markup, boosts, ranges, etc. but it is not guaranteed to match an exact parse from the query parser. + to strip off field markup, boosts, ranges, etc. but it is not guaranteed to match an exact parse from the query parser. - --> + + Optional, defaults to solr.SpellingQueryConverter + --> - <queryConverter name="queryConverter" class="org.apache.solr.spelling.SpellingQueryConverter"/> + <queryConverter name="queryConverter" class="solr.SpellingQueryConverter"/> <!-- Add to a RequestHandler --> - <requestHandler name="/spellCheckCompRH" class="org.apache.solr.handler.component.SearchHandler"> + <requestHandler name="/spellCheckCompRH" class="solr.SearchHandler"> <lst name="defaults"> <!-- omp = Only More Popular --> <str name="spellcheck.onlyMorePopular">false</str>
