Class Suggestion

java.lang.Object
io.quarkus.redis.datasource.autosuggest.Suggestion

public class Suggestion extends Object
Represent a suggestion.

If the SUGGET command is executed with the WITHSCORES parameter, the suggestion also contains the score. 0.0 otherwise.

  • Constructor Details

    • Suggestion

      public Suggestion(String suggestion, double score)
    • Suggestion

      public Suggestion(String suggestion)
  • Method Details

    • suggestion

      public String suggestion()
      Returns:
      the suggestion
    • score

      public double score()
      Returns:
      the score, 0.0 is not available.