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.JSONException
public long getNumberFound()
SuggesterResult
getNumberFound
in interface SuggesterResult
public List<org.alfresco.util.Pair<String,Integer>> getSuggestions()
SuggesterResult
getSuggestions
in interface SuggesterResult
Copyright © 2005–2017 Alfresco Software. All rights reserved.