java.lang.Object
io.quarkus.redis.datasource.autosuggest.GetArgs
All Implemented Interfaces:
RedisCommandExtraArguments

public class GetArgs extends Object implements RedisCommandExtraArguments
  • Constructor Details

    • GetArgs

      public GetArgs()
  • Method Details

    • fuzzy

      public GetArgs fuzzy()
      Performs a fuzzy prefix search, including prefixes at Levenshtein distance of 1 from the prefix sent.
      Returns:
      the current GetArgs.
    • max

      public GetArgs max(int max)
      Limits the results to a maximum of num (default: 5).
      Parameters:
      max - the max number of results, must be strictly positive
      Returns:
      the current GetArgs.
    • withScores

      public GetArgs withScores()
      Also to attach the score of each suggestion. This can be used to merge results from multiple instances.
      Returns:
      the current GetArgs.
    • toArgs

      public List<Object> toArgs()
      Specified by:
      toArgs in interface RedisCommandExtraArguments
      Returns:
      the list of arguments.
    • hasScores

      public boolean hasScores()