public class SolrSuggesterResult extends Object implements SuggesterResult
| Constructor and Description |
|---|
SolrSuggesterResult() |
SolrSuggesterResult(org.json.JSONObject 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(org.json.JSONObject json)
Parses the json returned from the suggester
|
String |
toString() |
public SolrSuggesterResult()
public SolrSuggesterResult(org.json.JSONObject jsonObject)
protected void processJson(org.json.JSONObject json)
throws org.json.JSONException
json - the JSON objectorg.json.JSONExceptionpublic 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.