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}.
|
||||
*/
|
||||
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))
|
||||
|
|
Loading…
Reference in New Issue