Class SolrSuggesterResult

  • All Implemented Interfaces:
    SuggesterResult

    public class SolrSuggesterResult
    extends java.lang.Object
    implements SuggesterResult
    Since:
    5.0
    Author:
    Jamal Kaabi-Mofrad
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getNumberFound()
      Get the number of suggestions
      java.util.List<org.alfresco.util.Pair<java.lang.String,​java.lang.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
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SolrSuggesterResult

        public SolrSuggesterResult()
      • SolrSuggesterResult

        public SolrSuggesterResult​(org.json.JSONObject jsonObject)
    • Method Detail

      • 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
      • getSuggestions

        public java.util.List<org.alfresco.util.Pair<java.lang.String,​java.lang.Integer>> getSuggestions()
        Description copied from interface: SuggesterResult
        Get the list of suggestions as ("term", "weight") pairs. Never null.
        Specified by:
        getSuggestions in interface SuggesterResult
        Returns:
        list of suggestions
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object