You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2013/04/18 18:26:50 UTC

[Solr Wiki] Trivial Update of "FileBasedSpellChecker" by MarkBennett

Dear Wiki user,

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

The "FileBasedSpellChecker" page has been changed by MarkBennett:
http://wiki.apache.org/solr/FileBasedSpellChecker?action=diff&rev1=3&rev2=4

  
  = Hints =
  
- The !FileBasedSpellChecker is very similar in operation to the other v3 !IndexBasedSpellChecker, both of which require a separate Lucene index to be built; this can be a bit confusing to those who've only ever used v4's DirectSolrSpellChecker which doesn't have that requirements.  In particular, you still need to index the dictionary file once by issuing a search with '''&spellcheck.build=true''' on the end of the URL; if you system doesn't update that dictionary file, then this only needs to be done once.    This manual step may be required even if your configuration sets build=true and reload=true.
+ The !FileBasedSpellChecker is very similar in operation to v3's primary !IndexBasedSpellChecker, both of which require a separate Lucene index to be built; this can be a bit confusing to those who've only ever used v4's !DirectSolrSpellChecker which doesn't have that requirements.  In particular, you still need to index the dictionary file once by issuing a search with '''&spellcheck.build=true''' on the end of the URL; if you system doesn't update that dictionary file, then this only needs to be done once.    This manual step may be required even if your configuration sets build=true and reload=true.
  
  In the default solrconfig.xml there's a sample commented out configuration, '''<str name="name">file</str>''', that can be used as a template.  The name "file" is arbitrary and you can have several file based spellcheckers, pointing to different flat files, with different names.  Elsewhere in solrconfig you'd reference the named '''file''' configuration with <str name="spellcheck.dictionary">file</str>.