Class SolrSuggesterResult
java.lang.Object
org.alfresco.repo.search.impl.solr.SolrSuggesterResult
- All Implemented Interfaces:
SuggesterResult
- Since:
- 5.0
- Author:
- Jamal Kaabi-Mofrad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongGet the number of suggestionsGet the list of suggestions as ("term", "weight") pairs.protected voidprocessJson(org.json.JSONObject json) Parses the json returned from the suggestertoString()
-
Constructor Details
-
SolrSuggesterResult
public SolrSuggesterResult() -
SolrSuggesterResult
public SolrSuggesterResult(org.json.JSONObject jsonObject)
-
-
Method Details
-
processJson
protected void processJson(org.json.JSONObject json) throws org.json.JSONException Parses the json returned from the suggester- Parameters:
json- the JSON object- Throws:
org.json.JSONException
-
getNumberFound
public long getNumberFound()Description copied from interface:SuggesterResultGet the number of suggestions- Specified by:
getNumberFoundin interfaceSuggesterResult- Returns:
- long
-
getSuggestions
Description copied from interface:SuggesterResultGet the list of suggestions as ("term", "weight") pairs. Never null.- Specified by:
getSuggestionsin interfaceSuggesterResult- Returns:
- list of suggestions
-
toString
-