Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-1627

SpellChecker has no "close" method

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: modules/spellchecker
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      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...

      yourSpellChecker.setSpellIndex(new RamDirecotry())

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              hossman Chris M. Hostetter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: