Class Suggestion


  • public class Suggestion
    extends Object
    This class models a Suggestion coming from Solr Suggest Component. It is a direct mapping fo the Json object Solr is returning.
    • Constructor Detail

      • Suggestion

        public Suggestion​(String term,
                          long weight,
                          String payload)
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getTerm

        public String getTerm()
      • getWeight

        public long getWeight()
      • getPayload

        public String getPayload()