You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucenenet.apache.org by "Digy (JIRA)" <ji...@apache.org> on 2010/04/29 20:21:56 UTC
[jira] Updated: (LUCENENET-359) Spellchecker accuracy gets
overwritten
[ https://issues.apache.org/jira/browse/LUCENENET-359?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Digy updated LUCENENET-359:
---------------------------
Attachment: LUCENENET-359.patch
Hi Ben,
Can you test the attached patch?
If it's OK, I will commit.
DIGY
> Spellchecker accuracy gets overwritten
> --------------------------------------
>
> Key: LUCENENET-359
> URL: https://issues.apache.org/jira/browse/LUCENENET-359
> Project: Lucene.Net
> Issue Type: Bug
> Reporter: Ben West
> Priority: Minor
> Attachments: LUCENENET-359.patch
>
>
> Spellchecker.cs line 205 has the following:
> {quote}
> //if queue full , maintain the min score
> min = ((SuggestWord) sugqueue.Top()).score;
> {quote}
> what this is doing is resetting min to be the highest of the suggestions found so far. This is fine, except that min is a global, persistent variable. So if you set min to be .5, do a search that has a result of .9, your next search will have a min of .9, which means that the next suggestion probably will fail.
> Fix would just be to make a localMin copy or some such and update that.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.