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

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1433993 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Martijn van Groningen 2013-01-16 15:45:22 +00:00
parent 0c59316f96
commit 8d53469101
1 changed files with 27 additions and 2 deletions

View File

@ -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))