public class SuggesterResult extends Object
SolrSuggester
Constructor and Description |
---|
SuggesterResult() |
Modifier and Type | Method and Description |
---|---|
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
|
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)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.