Class SolrSuggesterResult
- java.lang.Object
-
- org.alfresco.repo.search.impl.lucene.SolrSuggesterResult
-
- All Implemented Interfaces:
SuggesterResult
public class SolrSuggesterResult extends java.lang.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 suggestionsjava.util.List<org.alfresco.util.Pair<java.lang.String,java.lang.Integer>>getSuggestions()Get the list of suggestions as ("term", "weight") pairs.protected voidprocessJson(org.json.JSONObject json)Parses the json returned from the suggesterjava.lang.StringtoString()
-
-
-
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 java.util.List<org.alfresco.util.Pair<java.lang.String,java.lang.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
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-