|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.solr.spelling.suggest.SuggesterResult
public class SuggesterResult
Encapsulates the results returned by the suggester in SolrSuggester
Constructor Summary | |
---|---|
SuggesterResult()
|
Method Summary | |
---|---|
void |
add(String suggesterName,
String token,
List<Lookup.LookupResult> results)
Add suggestion results for token |
List<Lookup.LookupResult> |
getLookupResult(String suggesterName,
String token)
Get a list of lookup result for a given token
null can be returned, if there are no lookup results
for the token |
Set<String> |
getSuggesterNames()
Get the set of suggesterNames for which this instance holds results |
Set<String> |
getTokens(String suggesterName)
Get the set of tokens that are present in the instance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SuggesterResult()
Method Detail |
---|
public void add(String suggesterName, String token, List<Lookup.LookupResult> results)
token
public List<Lookup.LookupResult> getLookupResult(String suggesterName, String token)
token
null can be returned, if there are no lookup results
for the token
public Set<String> getTokens(String suggesterName)
public Set<String> getSuggesterNames()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |