lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Naber (JIRA)" <>
Subject [jira] Created: (SOLR-1676) spellcheck.count has confusing default and documentation
Date Sat, 19 Dec 2009 23:34:18 GMT
spellcheck.count has confusing default and documentation

                 Key: SOLR-1676
             Project: Solr
          Issue Type: Bug
          Components: spellchecker
    Affects Versions: 1.4
            Reporter: Daniel Naber
            Priority: Minor

It seems spellcheck.count does not just limit the number of results returned, as the documentation
claims. Instead, this value is given to the Lucene SpellChecker class which multiplies it
by 10 and then only fetches the first spellcheck.count*10 candidates, ignoring all others.
The effect is that with a low value for spellcheck.count you might miss good hits. In other
words, the first item with spellcheck.count==1 is not always the same item as with e.g. spellcheck.count==10.

The fix could be to fix the documentation (the comments in the sample solrconfig.xml) to mention
this and use a better default.

The Lucene SpellChecker class says about the numSug parameter: "Thus, you should set this
value to *at least* 5 for a good suggestion."

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message