LUCENE-2108: add SpellChecker.close()

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@886911 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2009-12-03 20:35:19 +00:00
parent 43e6963b45
commit fbfd147b23
2 changed files with 13 additions and 1 deletions

View File

@ -10,13 +10,17 @@ Bug fixes
now reverses supplementary characters correctly if used with Version > 3.0.
(Simon Willnauer, Robert Muir)
API Changes
* LUCENE-2108: Add SpellChecker.close, to close the underlying
reader. (Eirik Bjørsnøs via Mike McCandless)
New features
* LUCENE-2067: Add a Czech light stemmer. CzechAnalyzer will now stem words
when Version is set to 3.1 or higher. (Robert Muir)
* LUCENE-2062: Add a Bulgarian analyzer. (Robert Muir, Simon Willnauer)
======================= Release 3.0.0 2009-11-25 =======================

View File

@ -409,4 +409,12 @@ public class SpellChecker {
}
}
}
/**
* Close the IndexSearcher used by this SpellChecker.
*/
public void close() throws IOException {
searcher.close();
searcher = null;
}
}