Class SearchSuggestion


  • @Validated
    @Generated(value="io.swagger.codegen.v3.generators.java.SpringCodegen",
               date="2023-12-06T11:25:47.362934Z[Etc/UTC]")
    public class SearchSuggestion
    extends java.lang.Object
    The model for the search result
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      SearchSuggestion frequency​(java.lang.Long frequency)  
      @NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getFrequency()
      How many matches there are with the suggested text for the given field minimum: -9223372036854775808 maximum: 9223372036854775807
      @NotNull @Valid java.math.BigDecimal getScore()
      The score for how close this suggestion is to the original search query.
      @NotNull java.lang.String getText()
      The suggestion text for this search query
      int hashCode()  
      SearchSuggestion score​(java.math.BigDecimal score)  
      void setFrequency​(java.lang.Long frequency)  
      void setScore​(java.math.BigDecimal score)  
      void setText​(java.lang.String text)  
      SearchSuggestion text​(java.lang.String text)  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • SearchSuggestion

        public SearchSuggestion()
    • Method Detail

      • getText

        @NotNull
        public @NotNull java.lang.String getText()
        The suggestion text for this search query
        Returns:
        text
      • setText

        public void setText​(java.lang.String text)
      • getScore

        @NotNull
        @Valid
        public @NotNull @Valid java.math.BigDecimal getScore()
        The score for how close this suggestion is to the original search query. The closer to 1 means it is closer to the original query and 0 is further away.
        Returns:
        score
      • setScore

        public void setScore​(java.math.BigDecimal score)
      • getFrequency

        @NotNull
        @Min(-9223372036854775808L)
        @Max(9223372036854775807L)
        public @NotNull @Min(-9223372036854775808L) @Max(9223372036854775807L) java.lang.Long getFrequency()
        How many matches there are with the suggested text for the given field minimum: -9223372036854775808 maximum: 9223372036854775807
        Returns:
        frequency
      • setFrequency

        public void setFrequency​(java.lang.Long frequency)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

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