Class GetArgs
- java.lang.Object
-
- io.quarkus.redis.datasource.autosuggest.GetArgs
-
- All Implemented Interfaces:
RedisCommandExtraArguments
public class GetArgs extends Object implements RedisCommandExtraArguments
-
-
Constructor Summary
Constructors Constructor Description GetArgs()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetArgs
fuzzy()
Performs a fuzzy prefix search, including prefixes at Levenshtein distance of 1 from the prefix sent.boolean
hasScores()
GetArgs
max(int max)
Limits the results to a maximum of num (default: 5).List<String>
toArgs()
GetArgs
withScores()
Also to attach the score of each suggestion.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.redis.datasource.RedisCommandExtraArguments
toArgs
-
-
-
-
Method Detail
-
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<String> toArgs()
- Specified by:
toArgs
in interfaceRedisCommandExtraArguments
- Returns:
- the list of arguments, encoded as a list of String.
-
hasScores
public boolean hasScores()
-
-