Skip to content

Apache Lucene open-source search software

LUCENE-4684: Made fields private again (2).

Martijn van Groningen8d53469101c4
diff --git a/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java b/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
index d634d3f3866..b88a8c0ba6f 100644
--- a/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
+++ b/lucene/suggest/src/java/org/apache/lucene/search/spell/DirectSpellChecker.java
@@ -467,13 +467,38 @@ public class DirectSpellChecker {
* Holds a spelling correction for internal usage inside {@link DirectSpellChecker}.
*/
protected static class ScoreTerm implements Comparable<ScoreTerm> {
+
+ /**
+ * The actual spellcheck correction.
+ */
public BytesRef term;
+
+ /**
+ * The boost representing the similarity from the FuzzyTermsEnum (internal similarity score)
+ */
public float boost;
+
+ /**
+ * The df of the spellcheck correction.
+ */
public int docfreq;
-
+
+ /**
+ * The spellcheck correction represented as string, can be <code>null</code>.
+ */
public String termAsString;
+
+ /**
+ * The similarity score.
+ */
public float score;
-
+
+ /**
+ * Constructor.
+ */
+ public ScoreTerm() {
+ }
+
@Override
public int compareTo(ScoreTerm other) {
if (term.bytesEquals(other.term))