lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Otis Gospodnetic (JIRA)" <>
Subject [jira] Updated: (LUCENE-1152) SpellChecker does not work properly on calling indexDictionary after clearIndex
Date Sat, 17 May 2008 04:41:55 GMT


Otis Gospodnetic updated LUCENE-1152:

    Component/s:     (was: contrib/*)
       Assignee: Otis Gospodnetic

This patch no longer applies.  Could you provide a new patch (against trunk)?  Also, please
use 2-spaces for indentation.  Thanks.

As for synchronizing indexDictionary method, why not add synchronization logic to your application?

> SpellChecker does not work properly on calling indexDictionary after clearIndex
> -------------------------------------------------------------------------------
>                 Key: LUCENE-1152
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/spellchecker
>    Affects Versions: 2.3
>            Reporter: Naveen Belkale
>            Assignee: Otis Gospodnetic
>            Priority: Minor
>         Attachments: spellchecker.diff
> We have to call clearIndex and indexDictionary to rebuild dictionary from fresh. The
call to SpellChecker clearIndex() function does not reset the searcher. Hence, when we call
indexDictionary after that, many entries that are already in the stale searcher will not be
> Also, I see that IndexReader reader is used for the sole purpose of obtaining the docFreq
of a given term in exist() function. This functionality can also be obtained by using just
the searcher by calling searcher.docFreq. Thus, can we get away completely with reader and
code associated with it like
>       if (IndexReader.isLocked(spellIndex)){
> 	IndexReader.unlock(spellIndex);
>       }
> and the reader related code in finalize?

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

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message