lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r886911 - in /lucene/java/trunk/contrib: CHANGES.txt spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
Date Thu, 03 Dec 2009 20:35:19 GMT
Author: mikemccand
Date: Thu Dec  3 20:35:19 2009
New Revision: 886911

URL: http://svn.apache.org/viewvc?rev=886911&view=rev
Log:
LUCENE-2108: add SpellChecker.close()

Modified:
    lucene/java/trunk/contrib/CHANGES.txt
    lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java

Modified: lucene/java/trunk/contrib/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/CHANGES.txt?rev=886911&r1=886910&r2=886911&view=diff
==============================================================================
--- lucene/java/trunk/contrib/CHANGES.txt (original)
+++ lucene/java/trunk/contrib/CHANGES.txt Thu Dec  3 20:35:19 2009
@@ -10,13 +10,17 @@
    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 =======================
 

Modified: lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java?rev=886911&r1=886910&r2=886911&view=diff
==============================================================================
--- lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
(original)
+++ lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
Thu Dec  3 20:35:19 2009
@@ -409,4 +409,12 @@
       }
     }
   }
+
+  /**
+   * Close the IndexSearcher used by this SpellChecker.
+   */
+  public void close() throws IOException {
+    searcher.close();
+    searcher = null;
+  }
 }



Mime
View raw message