You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@lucene.apache.org by gs...@apache.org on 2008/06/19 14:52:11 UTC
svn commit: r669476 -
/lucene/java/trunk/contrib/spellchecker/src/java/org/apache/lucene/search/spell/SpellChecker.java
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 < minScore < 1; default 0.5