public class SolrSuggesterResult extends Object implements SuggesterResult
| Constructor and Description |
|---|
SolrSuggesterResult() |
SolrSuggesterResult(com.fasterxml.jackson.databind.JsonNode jsonObject) |
| Modifier and Type | Method and Description |
|---|---|
long |
getNumberFound()
Get the number of suggestions
|
List<org.alfresco.util.Pair<String,Integer>> |
getSuggestions()
Get the list of suggestions as ("term", "weight") pairs.
|
protected void |
processJson(com.fasterxml.jackson.databind.JsonNode json)
Parses the json returned from the suggester
|
String |
toString() |
public SolrSuggesterResult()
public SolrSuggesterResult(com.fasterxml.jackson.databind.JsonNode jsonObject)
protected void processJson(com.fasterxml.jackson.databind.JsonNode json)
json - the JSON objectpublic long getNumberFound()
SuggesterResultgetNumberFound in interface SuggesterResultpublic List<org.alfresco.util.Pair<String,Integer>> getSuggestions()
SuggesterResultgetSuggestions in interface SuggesterResultCopyright © 2005–2018 Alfresco Software. All rights reserved.