Interface TransactionalAutoSuggestCommands<K>

    • Method Detail

      • ftSugAdd

        default void 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 key
        string - the suggestion string to index
        score - the floating point number of the suggestion string's weight
      • ftSugAdd

        void 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 key
        string - the suggestion string to index
        score - the floating point number of the suggestion string's weight
        increment - 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.
      • ftSugDel

        void 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 key
        string - the suggestion string to index
      • ftSugget

        void 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 key
        prefix - is prefix to complete on.
      • ftSugget

        void 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 key
        prefix - is prefix to complete on.
        args - the extra argument, must not be null
      • ftSugLen

        void ftSugLen​(K key)
        Execute the command FT.SUGLEN. Summary: Get the size of an auto-complete suggestion dictionary Group: auto-suggest
        Parameters:
        key - the suggestion dictionary key