Package org.apache.solr.spelling.suggest
Class SuggesterResult
- java.lang.Object
-
- org.apache.solr.spelling.suggest.SuggesterResult
-
public class SuggesterResult extends Object
Encapsulates the results returned by the suggester inSolrSuggester
-
-
Constructor Summary
Constructors Constructor Description SuggesterResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(String suggesterName, String token, List<org.apache.lucene.search.suggest.Lookup.LookupResult> results)
Add suggestion results fortoken
List<org.apache.lucene.search.suggest.Lookup.LookupResult>
getLookupResult(String suggesterName, String token)
Get a list of lookup result for a giventoken
null can be returned, if there are no lookup results for thetoken
Set<String>
getSuggesterNames()
Get the set of suggesterNames for which this instance holds resultsSet<String>
getTokens(String suggesterName)
Get the set of tokens that are present in the instance
-
-
-
Method Detail
-
add
public void add(String suggesterName, String token, List<org.apache.lucene.search.suggest.Lookup.LookupResult> results)
Add suggestion results fortoken
-
getLookupResult
public List<org.apache.lucene.search.suggest.Lookup.LookupResult> getLookupResult(String suggesterName, String token)
Get a list of lookup result for a giventoken
null can be returned, if there are no lookup results for thetoken
-
getTokens
public Set<String> getTokens(String suggesterName)
Get the set of tokens that are present in the instance
-
-