public class SpellCheckResponse extends Object
Modifier and Type | Class and Description |
---|---|
class |
SpellCheckResponse.Collation |
class |
SpellCheckResponse.Correction |
static class |
SpellCheckResponse.Suggestion |
Constructor and Description |
---|
SpellCheckResponse(NamedList<NamedList<Object>> spellInfo) |
Modifier and Type | Method and Description |
---|---|
String |
getCollatedResult()
Return the first collated query string.
|
List<SpellCheckResponse.Collation> |
getCollatedResults()
Return all collations.
|
String |
getFirstSuggestion(String token) |
SpellCheckResponse.Suggestion |
getSuggestion(String token) |
Map<String,SpellCheckResponse.Suggestion> |
getSuggestionMap() |
List<SpellCheckResponse.Suggestion> |
getSuggestions() |
boolean |
isCorrectlySpelled() |
public boolean isCorrectlySpelled()
public List<SpellCheckResponse.Suggestion> getSuggestions()
public Map<String,SpellCheckResponse.Suggestion> getSuggestionMap()
public SpellCheckResponse.Suggestion getSuggestion(String token)
public String getCollatedResult()
Return the first collated query string. For convenience and backwards-compatibility. Use getCollatedResults() for full data.
public List<SpellCheckResponse.Collation> getCollatedResults()
Return all collations. Will include # of hits and misspelling-to-correction details if "spellcheck.collateExtendedResults was true.
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.