mirror of https://github.com/apache/lucene.git
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:
parent
0c59316f96
commit
8d53469101
|
@ -467,13 +467,38 @@ public class DirectSpellChecker {
|
||||||
* Holds a spelling correction for internal usage inside {@link DirectSpellChecker}.
|
* Holds a spelling correction for internal usage inside {@link DirectSpellChecker}.
|
||||||
*/
|
*/
|
||||||
protected static class ScoreTerm implements Comparable<ScoreTerm> {
|
protected static class ScoreTerm implements Comparable<ScoreTerm> {
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The actual spellcheck correction.
|
||||||
|
*/
|
||||||
public BytesRef term;
|
public BytesRef term;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The boost representing the similarity from the FuzzyTermsEnum (internal similarity score)
|
||||||
|
*/
|
||||||
public float boost;
|
public float boost;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The df of the spellcheck correction.
|
||||||
|
*/
|
||||||
public int docfreq;
|
public int docfreq;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The spellcheck correction represented as string, can be <code>null</code>.
|
||||||
|
*/
|
||||||
public String termAsString;
|
public String termAsString;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The similarity score.
|
||||||
|
*/
|
||||||
public float score;
|
public float score;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*/
|
||||||
|
public ScoreTerm() {
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int compareTo(ScoreTerm other) {
|
public int compareTo(ScoreTerm other) {
|
||||||
if (term.bytesEquals(other.term))
|
if (term.bytesEquals(other.term))
|
||||||
|
|
Loading…
Reference in New Issue