-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add RediSearch Pipeline Commands (#2770)
- Loading branch information
1 parent
a9394b6
commit db53e13
Showing
4 changed files
with
321 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/redis/clients/jedis/search/RediSearchPipelineCommands.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,57 @@ | ||
package redis.clients.jedis.search; | ||
|
||
import redis.clients.jedis.Response; | ||
import redis.clients.jedis.search.aggr.AggregationBuilder; | ||
import redis.clients.jedis.search.aggr.AggregationResult; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public interface RediSearchPipelineCommands { | ||
|
||
Response<String> ftCreate(String indexName, IndexOptions indexOptions, Schema schema); | ||
|
||
default Response<String> ftAlter(String indexName, Schema.Field... fields) { | ||
return ftAlter(indexName, Schema.from(fields)); | ||
} | ||
|
||
Response<String> ftAlter(String indexName, Schema schema); | ||
|
||
Response<SearchResult> ftSearch(String indexName, Query query); | ||
|
||
Response<SearchResult> ftSearch(byte[] indexName, Query query); | ||
|
||
Response<String> ftExplain(String indexName, Query query); | ||
|
||
Response<List<String>> ftExplainCLI(String indexName, Query query); | ||
|
||
Response<AggregationResult> ftAggregate(String indexName, AggregationBuilder aggr); | ||
|
||
Response<AggregationResult> ftCursorRead(String indexName, long cursorId, int count); | ||
|
||
Response<String> ftCursorDel(String indexName, long cursorId); | ||
|
||
Response<String> ftDropIndex(String indexName); | ||
|
||
Response<String> ftDropIndexDD(String indexName); | ||
|
||
Response<String> ftSynUpdate(String indexName, String synonymGroupId, String... terms); | ||
|
||
Response<Map<String, List<String>>> ftSynDump(String indexName); | ||
|
||
Response<Map<String, Object>> ftInfo(String indexName); | ||
|
||
Response<String> ftAliasAdd(String aliasName, String indexName); | ||
|
||
Response<String> ftAliasUpdate(String aliasName, String indexName); | ||
|
||
Response<String> ftAliasDel(String aliasName); | ||
|
||
Response<Map<String, String>> ftConfigGet(String option); | ||
|
||
Response<Map<String, String>> ftConfigGet(String indexName, String option); | ||
|
||
Response<String> ftConfigSet(String option, String value); | ||
|
||
Response<String> ftConfigSet(String indexName, String option, String value); | ||
} |