lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gsing...@apache.org
Subject svn commit: r669476 - /lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
Date Thu, 19 Jun 2008 12:52:11 GMT
Author: gsingers
Date: Thu Jun 19 05:52:11 2008
New Revision: 669476

URL: http://svn.apache.org/viewvc?rev=669476&view=rev
Log:
add a getter for the StringDistance

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

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=669476&r1=669475&r2=669476&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 Jun 19 05:52:11 2008
@@ -17,9 +17,6 @@
  * limitations under the License.
  */
 
-import java.io.IOException;
-import java.util.Iterator;
-
 import org.apache.lucene.analysis.WhitespaceAnalyzer;
 import org.apache.lucene.document.Document;
 import org.apache.lucene.document.Field;
@@ -34,6 +31,9 @@
 import org.apache.lucene.search.TermQuery;
 import org.apache.lucene.store.Directory;
 
+import java.io.IOException;
+import java.util.Iterator;
+
 /**
  * <p>
  *   Spell Checker class  (Main class) <br/>
@@ -119,7 +119,10 @@
   public void setStringDistance(StringDistance sd) {
     this.sd = sd;
   }
-  
+
+  public StringDistance getStringDistance() {
+    return sd;
+  }
 
   /**
    * Sets the accuracy 0 &lt; minScore &lt; 1; default 0.5



Mime
View raw message