-
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.
- Loading branch information
Showing
15 changed files
with
662 additions
and
63 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
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
37 changes: 37 additions & 0 deletions
37
src/main/java/redis/clients/jedis/search/RediSearchCommands.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,10 +1,47 @@ | ||
package redis.clients.jedis.search; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import redis.clients.jedis.search.aggr.AggregationBuilder; | ||
import redis.clients.jedis.search.aggr.AggregationResult; | ||
|
||
public interface RediSearchCommands { | ||
|
||
String ftCreate(String indexName, IndexOptions indexOptions, Schema schema); | ||
|
||
default String ftAlter(String indexName, Schema.Field... fields) { | ||
return ftAlter(indexName, Schema.from(fields)); | ||
} | ||
|
||
String ftAlter(String indexName, Schema schema); | ||
|
||
SearchResult ftSearch(String indexName, Query query); | ||
|
||
SearchResult ftSearch(byte[] indexName, Query query); | ||
|
||
String ftExplain(String indexName, Query query); | ||
|
||
List<String> ftExplainCLI(String indexName, Query query); | ||
|
||
AggregationResult ftAggregate(String indexName, AggregationBuilder aggr); | ||
|
||
String ftDropIndex(String indexName); | ||
|
||
String ftDropIndexDD(String indexName); | ||
|
||
String ftSynUpdate(String indexName, String synonymGroupId, String... terms); | ||
|
||
Map<String, List<Object>> ftSynDump(String indexName); | ||
|
||
Map<String, Object> ftInfo(String indexName); | ||
|
||
String ftAliasAdd(String aliasName, String indexName); | ||
|
||
String ftAliasUpdate(String aliasName, String indexName); | ||
|
||
String ftAliasDel(String aliasName); | ||
|
||
Map<String, String> ftConfigGet(String option); | ||
|
||
String ftConfigSet(String option, String value); | ||
} |
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
Oops, something went wrong.