V - Value type.public static class SpellCheckResult.Suggestion<V> extends Object
| Constructor and Description |
|---|
Suggestion(double score,
V suggestion)
Create a new spelling suggestion.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getScore()
Get the suggestion score.
|
V |
getSuggestion()
Get the suggested term.
|
int |
hashCode() |
String |
toString() |
public Suggestion(double score,
V suggestion)
score - the suggestion scoresuggestion - the suggested termpublic double getScore()
The score is calculated by dividing the number of documents in which the suggested term exists by the total number of documents in the index. Results can be normalized by dividing scores by the highest score.
public V getSuggestion()
Copyright © 2025 lettuce.io. All rights reserved.