V - Value type.public class SpellCheckResult<V> extends Object
Contains a list of misspelled terms from the query, each with their spelling suggestions. The misspelled terms are ordered by their order of appearance in the query.
| Modifier and Type | Class and Description |
|---|---|
static class |
SpellCheckResult.MisspelledTerm<V>
Represents a misspelled term and its spelling suggestions.
|
static class |
SpellCheckResult.Suggestion<V>
Represents a spelling suggestion with its score.
|
| Constructor and Description |
|---|
SpellCheckResult() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
getMisspelledTermCount()
Get the number of misspelled terms.
|
List<SpellCheckResult.MisspelledTerm<V>> |
getMisspelledTerms()
Get the list of misspelled terms with their suggestions.
|
int |
hashCode() |
boolean |
hasMisspelledTerms()
Check if there are any misspelled terms.
|
String |
toString() |
public List<SpellCheckResult.MisspelledTerm<V>> getMisspelledTerms()
public boolean hasMisspelledTerms()
true if there are misspelled termspublic int getMisspelledTermCount()
Copyright © 2025 lettuce.io. All rights reserved.