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

redis.clients.jedis.search.RediSearchPipelineCommands Maven / Gradle / Ivy

The newest version!
package redis.clients.jedis.search;

import java.util.Arrays;
import java.util.List;
import java.util.Map;
import java.util.Set;

import redis.clients.jedis.Response;
import redis.clients.jedis.resps.Tuple;
import redis.clients.jedis.search.aggr.AggregationBuilder;
import redis.clients.jedis.search.aggr.AggregationResult;
import redis.clients.jedis.search.schemafields.SchemaField;

public interface RediSearchPipelineCommands {

  Response ftCreate(String indexName, IndexOptions indexOptions, Schema schema);

  default Response ftCreate(String indexName, SchemaField... schemaFields) {
    return ftCreate(indexName, Arrays.asList(schemaFields));
  }

  default Response ftCreate(String indexName, FTCreateParams createParams, SchemaField... schemaFields) {
    return ftCreate(indexName, createParams, Arrays.asList(schemaFields));
  }

  default Response ftCreate(String indexName, Iterable schemaFields) {
    return ftCreate(indexName, FTCreateParams.createParams(), schemaFields);
  }

  Response ftCreate(String indexName, FTCreateParams createParams, Iterable schemaFields);

  default Response ftAlter(String indexName, Schema.Field... fields) {
    return ftAlter(indexName, Schema.from(fields));
  }

  Response ftAlter(String indexName, Schema schema);

  default Response ftAlter(String indexName, SchemaField... schemaFields) {
    return ftAlter(indexName, Arrays.asList(schemaFields));
  }

  Response ftAlter(String indexName, Iterable schemaFields);

  Response ftAliasAdd(String aliasName, String indexName);

  Response ftAliasUpdate(String aliasName, String indexName);

  Response ftAliasDel(String aliasName);

  Response ftDropIndex(String indexName);

  Response ftDropIndexDD(String indexName);

  default Response ftSearch(String indexName) {
    return ftSearch(indexName, "*");
  }

  Response ftSearch(String indexName, String query);

  Response ftSearch(String indexName, String query, FTSearchParams searchParams);

  Response ftSearch(String indexName, Query query);

  @Deprecated
  Response ftSearch(byte[] indexName, Query query);

  Response ftExplain(String indexName, Query query);

  Response> ftExplainCLI(String indexName, Query query);

  Response ftAggregate(String indexName, AggregationBuilder aggr);

  Response ftSynUpdate(String indexName, String synonymGroupId, String... terms);

  Response>> ftSynDump(String indexName);

  Response ftDictAdd(String dictionary, String... terms);

  Response ftDictDel(String dictionary, String... terms);

  Response> ftDictDump(String dictionary);

  Response ftDictAddBySampleKey(String indexName, String dictionary, String... terms);

  Response ftDictDelBySampleKey(String indexName, String dictionary, String... terms);

  Response> ftDictDumpBySampleKey(String indexName, String dictionary);

  Response>> ftSpellCheck(String index, String query);

  Response>> ftSpellCheck(String index, String query,
      FTSpellCheckParams spellCheckParams);

  Response> ftInfo(String indexName);

  Response> ftTagVals(String indexName, String fieldName);

  Response> ftConfigGet(String option);

  Response> ftConfigGet(String indexName, String option);

  Response ftConfigSet(String option, String value);

  Response ftConfigSet(String indexName, String option, String value);

  Response ftSugAdd(String key, String string, double score);

  Response ftSugAddIncr(String key, String string, double score);

  Response> ftSugGet(String key, String prefix);

  Response> ftSugGet(String key, String prefix, boolean fuzzy, int max);

  Response> ftSugGetWithScores(String key, String prefix);

  Response> ftSugGetWithScores(String key, String prefix, boolean fuzzy, int max);

  Response ftSugDel(String key, String string);

  Response ftSugLen(String key);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy