All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.redis.lettucemod.api.reactive.RediSearchReactiveCommands Maven / Gradle / Ivy

The newest version!
package com.redis.lettucemod.api.reactive;

import com.redis.lettucemod.search.AggregateOptions;
import com.redis.lettucemod.search.AggregateResults;
import com.redis.lettucemod.search.AggregateWithCursorResults;
import com.redis.lettucemod.search.CreateOptions;
import com.redis.lettucemod.search.CursorOptions;
import com.redis.lettucemod.search.Field;
import com.redis.lettucemod.search.SearchOptions;
import com.redis.lettucemod.search.SearchResults;
import com.redis.lettucemod.search.Suggestion;
import com.redis.lettucemod.search.SuggetOptions;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface RediSearchReactiveCommands {

	@SuppressWarnings("unchecked")
	Mono ftCreate(K index, Field... fields);

	@SuppressWarnings("unchecked")
	Mono ftCreate(K index, CreateOptions options, Field... fields);

	Mono ftDropindex(K index);

	Mono ftDropindexDeleteDocs(K index);

	Mono ftAlter(K index, Field field);

	Flux ftInfo(K index);

	Mono ftAliasadd(K name, K index);

	Mono ftAliasupdate(K name, K index);

	Mono ftAliasdel(K name);

	Flux ftList();

	Mono> ftSearch(K index, V query);

	Mono> ftSearch(K index, V query, SearchOptions options);

	Mono> ftAggregate(K index, V query);

	Mono> ftAggregate(K index, V query, AggregateOptions options);

	Mono> ftAggregate(K index, V query, CursorOptions cursor);

	Mono> ftAggregate(K index, V query, CursorOptions cursor,
			AggregateOptions options);

	Mono> ftCursorRead(K index, long cursor);

	Mono> ftCursorRead(K index, long cursor, long count);

	Mono ftCursorDelete(K index, long cursor);

	Flux ftTagvals(K index, K field);

	Mono ftSugadd(K key, Suggestion suggestion);

	Mono ftSugaddIncr(K key, Suggestion suggestion);

	Flux> ftSugget(K key, V prefix);

	Flux> ftSugget(K key, V prefix, SuggetOptions options);

	Mono ftSugdel(K key, V string);

	Mono ftSuglen(K key);

	@SuppressWarnings("unchecked")
	Mono ftDictadd(K dict, V... terms);

	@SuppressWarnings("unchecked")
	Mono ftDictdel(K dict, V... terms);

	Flux ftDictdump(K dict);

}