Class SolrSuggesterResult

java.lang.Object
org.alfresco.repo.search.impl.solr.SolrSuggesterResult
All Implemented Interfaces:
SuggesterResult

public class SolrSuggesterResult extends Object implements SuggesterResult
Since:
5.0
Author:
Jamal Kaabi-Mofrad
  • 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: SuggesterResult
      Get the number of suggestions
      Specified by:
      getNumberFound in interface SuggesterResult
      Returns:
      long
    • getSuggestions

      public List<Pair<String,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 String toString()
      Overrides:
      toString in class Object