Package com.redis.lettucemod.search
Class SearchCommandBuilder<K,V>
- java.lang.Object
-
- io.lettuce.core.protocol.BaseRedisCommandBuilder<K,V>
-
- com.redis.lettucemod.RedisModulesCommandBuilder<K,V>
-
- com.redis.lettucemod.search.SearchCommandBuilder<K,V>
-
public class SearchCommandBuilder<K,V> extends RedisModulesCommandBuilder<K,V>
Builder dedicated to RediSearch commands.
-
-
Constructor Summary
Constructors Constructor Description SearchCommandBuilder(io.lettuce.core.codec.RedisCodec<K,V> codec)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.lettuce.core.protocol.Command<K,V,AggregateResults<K>>aggregate(K index, V query, AggregateOptions<K,V> options)io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K>>aggregate(K index, V query, CursorOptions cursor, AggregateOptions<K,V> options)io.lettuce.core.protocol.Command<K,V,java.lang.String>aliasAdd(K name, K index)io.lettuce.core.protocol.Command<K,V,java.lang.String>aliasDel(K name)io.lettuce.core.protocol.Command<K,V,java.lang.String>aliasUpdate(K name, K index)io.lettuce.core.protocol.Command<K,V,java.lang.String>alter(K index, Field<K> field)protected SearchCommandArgs<K,V>args(K key)io.lettuce.core.protocol.Command<K,V,java.lang.String>create(K index, CreateOptions<K,V> options, Field<K>... fields)protected <A,B,T>
io.lettuce.core.protocol.Command<A,B,T>createCommand(SearchCommandType 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(K index, long cursor)io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K>>cursorRead(K index, long cursor, java.lang.Long count)io.lettuce.core.protocol.Command<K,V,java.lang.Long>dictadd(K dict, V... terms)io.lettuce.core.protocol.Command<K,V,java.lang.Long>dictdel(K dict, V... terms)io.lettuce.core.protocol.Command<K,V,java.util.List<V>>dictdump(K dict)io.lettuce.core.protocol.Command<K,V,java.lang.String>dropIndex(K index, boolean deleteDocs)io.lettuce.core.protocol.Command<K,V,java.util.List<java.lang.Object>>info(K index)io.lettuce.core.protocol.Command<K,V,java.util.List<K>>list()io.lettuce.core.protocol.Command<K,V,SearchResults<K,V>>search(K index, V query, SearchOptions<K,V> options)io.lettuce.core.protocol.Command<K,V,java.lang.Long>sugadd(K key, Suggestion<V> suggestion)io.lettuce.core.protocol.Command<K,V,java.lang.Long>sugadd(K key, V string, double score)io.lettuce.core.protocol.Command<K,V,java.lang.Long>sugadd(K key, V string, double score, V payload)io.lettuce.core.protocol.Command<K,V,java.lang.Long>sugadd(K key, V string, double score, V payload, boolean increment)io.lettuce.core.protocol.Command<K,V,java.lang.Long>sugaddIncr(K key, Suggestion<V> suggestion)io.lettuce.core.protocol.Command<K,V,java.lang.Long>sugaddIncr(K key, V string, double score)io.lettuce.core.protocol.Command<K,V,java.lang.Long>sugaddIncr(K key, V string, double score, V payload)io.lettuce.core.protocol.Command<K,V,java.lang.Boolean>sugdel(K key, V string)io.lettuce.core.protocol.Command<K,V,java.util.List<Suggestion<V>>>sugget(K key, V prefix)io.lettuce.core.protocol.Command<K,V,java.util.List<Suggestion<V>>>sugget(K key, V prefix, SuggetOptions options)io.lettuce.core.protocol.Command<K,V,java.lang.Long>suglen(K key)io.lettuce.core.protocol.Command<K,V,java.util.List<V>>tagVals(K index, K field)-
Methods inherited from class com.redis.lettucemod.RedisModulesCommandBuilder
notEmpty, notEmptyKeys, notEmptyValues, notNull, notNull, notNull, notNull, notNullKey
-
-
-
-
Method Detail
-
createCommand
protected <A,B,T> io.lettuce.core.protocol.Command<A,B,T> createCommand(SearchCommandType type, io.lettuce.core.output.CommandOutput<A,B,T> output, io.lettuce.core.protocol.CommandArgs<A,B> args)
-
create
public io.lettuce.core.protocol.Command<K,V,java.lang.String> create(K index, CreateOptions<K,V> options, Field<K>... fields)
-
dropIndex
public io.lettuce.core.protocol.Command<K,V,java.lang.String> dropIndex(K index, boolean deleteDocs)
-
alter
public io.lettuce.core.protocol.Command<K,V,java.lang.String> alter(K index, Field<K> field)
-
args
protected SearchCommandArgs<K,V> args(K key)
- Overrides:
argsin classRedisModulesCommandBuilder<K,V>
-
search
public io.lettuce.core.protocol.Command<K,V,SearchResults<K,V>> search(K index, V query, SearchOptions<K,V> options)
-
aggregate
public io.lettuce.core.protocol.Command<K,V,AggregateResults<K>> aggregate(K index, V query, AggregateOptions<K,V> options)
-
aggregate
public io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K>> aggregate(K index, V query, CursorOptions cursor, AggregateOptions<K,V> options)
-
cursorRead
public io.lettuce.core.protocol.Command<K,V,AggregateWithCursorResults<K>> cursorRead(K index, long cursor, java.lang.Long count)
-
cursorDelete
public io.lettuce.core.protocol.Command<K,V,java.lang.String> cursorDelete(K index, long cursor)
-
sugadd
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugadd(K key, V string, double score)
-
sugaddIncr
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugaddIncr(K key, V string, double score)
-
sugadd
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugadd(K key, V string, double score, V payload)
-
sugaddIncr
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugaddIncr(K key, V string, double score, V payload)
-
sugadd
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugadd(K key, V string, double score, V payload, boolean increment)
-
sugadd
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugadd(K key, Suggestion<V> suggestion)
-
sugaddIncr
public io.lettuce.core.protocol.Command<K,V,java.lang.Long> sugaddIncr(K key, Suggestion<V> suggestion)
-
sugget
public io.lettuce.core.protocol.Command<K,V,java.util.List<Suggestion<V>>> sugget(K key, V prefix)
-
sugget
public io.lettuce.core.protocol.Command<K,V,java.util.List<Suggestion<V>>> sugget(K key, V prefix, SuggetOptions options)
-
aliasUpdate
public io.lettuce.core.protocol.Command<K,V,java.lang.String> aliasUpdate(K name, K index)
-
-