Interface ReactiveAutoSuggestCommands<K>
-
- Type Parameters:
K- the type of the key
- All Superinterfaces:
ReactiveRedisCommands
- All Known Implementing Classes:
ReactiveAutoSuggestCommandsImpl
@Experimental("The auto-suggest group is experimental") public interface ReactiveAutoSuggestCommands<K> extends ReactiveRedisCommandsAllows executing commands from theauto-suggestgroup (requires the Redis Search module from Redis stack). See the auto-suggest command list for further information about these commands.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default io.smallrye.mutiny.Uni<Long>ftSugAdd(K key, String string, double score)Execute the command FT.SUGADD.io.smallrye.mutiny.Uni<Long>ftSugAdd(K key, String string, double score, boolean increment)Execute the command FT.SUGADD.io.smallrye.mutiny.Uni<Boolean>ftSugDel(K key, String string)Execute the command FT.SUGDEL.io.smallrye.mutiny.Uni<List<Suggestion>>ftSugGet(K key, String prefix)Execute the command FT.SUGGET.io.smallrye.mutiny.Uni<List<Suggestion>>ftSugGet(K key, String prefix, GetArgs args)Execute the command FT.SUGGET.io.smallrye.mutiny.Uni<Long>ftSugLen(K key)Execute the command FT.SUGLEN.-
Methods inherited from interface io.quarkus.redis.datasource.ReactiveRedisCommands
getDataSource
-
-
-
-
Method Detail
-
ftSugAdd
default io.smallrye.mutiny.Uni<Long> ftSugAdd(K key, String string, double score)
Execute the command FT.SUGADD. Summary: Add a suggestion string to an auto-complete suggestion dictionary Group: auto-suggest- Parameters:
key- the suggestion dictionary keystring- the suggestion string to indexscore- the floating point number of the suggestion string's weight- Returns:
- A uni emitting the current size of the suggestion dictionary.
-
ftSugAdd
io.smallrye.mutiny.Uni<Long> ftSugAdd(K key, String string, double score, boolean increment)
Execute the command FT.SUGADD. Summary: Add a suggestion string to an auto-complete suggestion dictionary Group: auto-suggest- Parameters:
key- the suggestion dictionary keystring- the suggestion string to indexscore- the floating point number of the suggestion string's weightincrement- increments the existing entry of the suggestion by the given score, instead of replacing the score. This is useful for updating the dictionary based on user queries in real time.- Returns:
- A uni emitting the current size of the suggestion dictionary.
-
ftSugDel
io.smallrye.mutiny.Uni<Boolean> ftSugDel(K key, String string)
Execute the command FT.SUGDEL. Summary: Delete a string from a suggestion index Group: auto-suggest- Parameters:
key- the suggestion dictionary keystring- the suggestion string to index- Returns:
- A uni emitting
trueif the value was found,falseotherwise
-
ftSugGet
io.smallrye.mutiny.Uni<List<Suggestion>> ftSugGet(K key, String prefix)
Execute the command FT.SUGGET. Summary: Get completion suggestions for a prefix Group: auto-suggest- Parameters:
key- the suggestion dictionary keyprefix- is prefix to complete on.- Returns:
- A uni emitting a list of the top suggestions matching the prefix, optionally with score after each entry.
-
ftSugGet
io.smallrye.mutiny.Uni<List<Suggestion>> ftSugGet(K key, String prefix, GetArgs args)
Execute the command FT.SUGGET. Summary: Get completion suggestions for a prefix Group: auto-suggest- Parameters:
key- the suggestion dictionary keyprefix- is prefix to complete on.args- the extra argument, must not benull- Returns:
- A uni emitting
trueif the value was found,falseotherwise
-
-