mirror of https://github.com/apache/lucene.git
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:
parent
43e6963b45
commit
fbfd147b23
|
@ -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 =======================
|
||||
|
||||
|
|
|
@ -409,4 +409,12 @@ public class SpellChecker {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the IndexSearcher used by this SpellChecker.
|
||||
*/
|
||||
public void close() throws IOException {
|
||||
searcher.close();
|
||||
searcher = null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue