Class RediSearchCommandBuilder<K,​V>


  • public class RediSearchCommandBuilder<K,​V>
    extends io.lettuce.core.protocol.BaseRedisCommandBuilder<K,​V>
    Dedicated pub/sub command builder to build pub/sub commands.
    • Field Summary

      • Fields inherited from class io.lettuce.core.protocol.BaseRedisCommandBuilder

        codec
    • Constructor Summary

      Constructors 
      Constructor Description
      RediSearchCommandBuilder​(io.lettuce.core.codec.RedisCodec<K,​V> codec)  
    • Method Summary

      Modifier and Type Method Description
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> add​(java.lang.String index, K docId, double score, java.util.Map<K,​V> fields, AddOptions options, V payload)  
      io.lettuce.core.protocol.Command<K,​V,​AggregateResults<K,​V>> aggregate​(java.lang.String index, java.lang.String query, AggregateOptions options)  
      io.lettuce.core.protocol.Command<K,​V,​AggregateWithCursorResults<K,​V>> aggregate​(java.lang.String index, java.lang.String query, AggregateOptions options, CursorOptions cursorOptions)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> aliasAdd​(java.lang.String name, java.lang.String index)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> aliasDel​(java.lang.String name)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> aliasUpdate​(java.lang.String name, java.lang.String index)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> alter​(java.lang.String index, K field, FieldOptions options)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> create​(java.lang.String index, Schema schema)  
      protected <A,​B,​T>
      io.lettuce.core.protocol.Command<A,​B,​T>
      createCommand​(CommandType type, io.lettuce.core.output.CommandOutput<A,​B,​T> output, io.lettuce.core.protocol.CommandArgs<A,​B> args)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> cursorDelete​(java.lang.String index, long cursor)  
      io.lettuce.core.protocol.Command<K,​V,​AggregateWithCursorResults<K,​V>> cursorRead​(java.lang.String index, long cursor, java.lang.Long count)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.Boolean> del​(java.lang.String index, K docId, boolean deleteDoc)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.String> drop​(java.lang.String index, DropOptions options)  
      io.lettuce.core.protocol.Command<K,​V,​java.util.Map<K,​V>> get​(java.lang.String index, K docId)  
      io.lettuce.core.protocol.Command<K,​V,​java.util.List<java.lang.Object>> info​(java.lang.String index)  
      io.lettuce.core.protocol.Command<K,​V,​java.util.List<java.util.Map<K,​V>>> mget​(java.lang.String index, K... docIds)  
      io.lettuce.core.protocol.Command<K,​V,​SearchResults<K,​V>> search​(java.lang.String index, java.lang.String query, SearchOptions options)  
      io.lettuce.core.protocol.Command<K,​V,​java.lang.Long> sugadd​(K key, V string, double score, boolean increment, V payload)  
      io.lettuce.core.protocol.Command<K,​V,​java.util.List<SuggestResult<V>>> sugget​(K key, V prefix, SuggestGetOptions options)  
      • Methods inherited from class io.lettuce.core.protocol.BaseRedisCommandBuilder

        createCommand, createCommand, createCommand, createCommand, createCommand, newScriptOutput
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RediSearchCommandBuilder

        public RediSearchCommandBuilder​(io.lettuce.core.codec.RedisCodec<K,​V> codec)
    • Method Detail

      • createCommand

        protected <A,​B,​T> io.lettuce.core.protocol.Command<A,​B,​T> createCommand​(CommandType type,
                                                                                                        io.lettuce.core.output.CommandOutput<A,​B,​T> output,
                                                                                                        io.lettuce.core.protocol.CommandArgs<A,​B> args)
      • add

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> add​(java.lang.String index,
                                                                                      K docId,
                                                                                      double score,
                                                                                      java.util.Map<K,​V> fields,
                                                                                      AddOptions options,
                                                                                      V payload)
      • create

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> create​(java.lang.String index,
                                                                                         Schema schema)
      • drop

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> drop​(java.lang.String index,
                                                                                       DropOptions options)
      • info

        public io.lettuce.core.protocol.Command<K,​V,​java.util.List<java.lang.Object>> info​(java.lang.String index)
      • alter

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> alter​(java.lang.String index,
                                                                                        K field,
                                                                                        FieldOptions options)
      • search

        public io.lettuce.core.protocol.Command<K,​V,​SearchResults<K,​V>> search​(java.lang.String index,
                                                                                                 java.lang.String query,
                                                                                                 SearchOptions options)
      • cursorRead

        public io.lettuce.core.protocol.Command<K,​V,​AggregateWithCursorResults<K,​V>> cursorRead​(java.lang.String index,
                                                                                                                  long cursor,
                                                                                                                  java.lang.Long count)
      • cursorDelete

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> cursorDelete​(java.lang.String index,
                                                                                               long cursor)
      • sugadd

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.Long> sugadd​(K key,
                                                                                       V string,
                                                                                       double score,
                                                                                       boolean increment,
                                                                                       V payload)
      • get

        public io.lettuce.core.protocol.Command<K,​V,​java.util.Map<K,​V>> get​(java.lang.String index,
                                                                                              K docId)
      • mget

        public io.lettuce.core.protocol.Command<K,​V,​java.util.List<java.util.Map<K,​V>>> mget​(java.lang.String index,
                                                                                                               K... docIds)
      • del

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.Boolean> del​(java.lang.String index,
                                                                                       K docId,
                                                                                       boolean deleteDoc)
      • aliasAdd

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> aliasAdd​(java.lang.String name,
                                                                                           java.lang.String index)
      • aliasUpdate

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> aliasUpdate​(java.lang.String name,
                                                                                              java.lang.String index)
      • aliasDel

        public io.lettuce.core.protocol.Command<K,​V,​java.lang.String> aliasDel​(java.lang.String name)