Class SolrSuggesterResult
- java.lang.Object
-
- org.alfresco.repo.search.impl.lucene.SolrSuggesterResult
-
- All Implemented Interfaces:
SuggesterResult
public class SolrSuggesterResult extends Object implements SuggesterResult
- Since:
- 5.0
- Author:
- Jamal Kaabi-Mofrad
-
-
Constructor Summary
Constructors Constructor Description SolrSuggesterResult()SolrSuggesterResult(org.json.JSONObject jsonObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetNumberFound()Get the number of suggestionsList<Pair<String,Integer>>getSuggestions()Get the list of suggestions as ("term", "weight") pairs.protected voidprocessJson(org.json.JSONObject json)Parses the json returned from the suggesterStringtoString()
-
-
-
Method Detail
-
processJson
protected void processJson(org.json.JSONObject json) throws org.json.JSONExceptionParses 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
public List<Pair<String,Integer>> getSuggestions()
Description copied from interface:SuggesterResultGet the list of suggestions as ("term", "weight") pairs. Never null.- Specified by:
getSuggestionsin interfaceSuggesterResult- Returns:
- list of suggestions
-
-