You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Shai Erera (JIRA)" <ji...@apache.org> on 2011/01/26 15:03:44 UTC

[jira] Closed: (LUCENE-1627) SpellChecker has no "close" method

     [ https://issues.apache.org/jira/browse/LUCENE-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Shai Erera closed LUCENE-1627.
------------------------------

    Resolution: Fixed

SpellChecker implements Closeable since LUCENE-2196.

> SpellChecker has no "close" method
> ----------------------------------
>
>                 Key: LUCENE-1627
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1627
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: contrib/spellchecker
>            Reporter: Hoss Man
>
> SpellChecker has no close method ... which means there is no way to force it to close the IndexSearcher it maintains when you are done using the SpellChecker.  (a quick skim of IndexSearcher doesn't even suggest there is a finalizer self closing in the event of GC)
> http://www.nabble.com/SpellChecker-locks-folder-to23171980.html#a23171980
> A hackish work around for people who want to force SpellChecker to close an IndexSearcher opened against a directory they care about doing something with... 
> {code}yourSpellChecker.setSpellIndex(new RamDirecotry()){code}

-- 
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: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org