Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FTSearch, FTCreate, and FTDropIndex functions to rueidiscompat #608

Open
rueian opened this issue Aug 13, 2024 · 4 comments
Open

Add FTSearch, FTCreate, and FTDropIndex functions to rueidiscompat #608

rueian opened this issue Aug 13, 2024 · 4 comments
Labels
feature good first issue Good for newcomers help wanted Extra attention is needed

Comments

@rueian
Copy link
Collaborator

rueian commented Aug 13, 2024

These new commands are introduced in go-redis 9.6.0. We should catch them up in rueidiscompat by implementing the following TODOs:

// TODO SearchCmdable
}
// TODO SearchCmdable
//type SearchCmdable interface {
// FT_List(ctx context.Context) *StringSliceCmd
// FTAggregate(ctx context.Context, index string, query string) *MapStringInterfaceCmd
// FTAggregateWithArgs(ctx context.Context, index string, query string, options *FTAggregateOptions) *AggregateCmd
// FTAliasAdd(ctx context.Context, index string, alias string) *StatusCmd
// FTAliasDel(ctx context.Context, alias string) *StatusCmd
// FTAliasUpdate(ctx context.Context, index string, alias string) *StatusCmd
// FTAlter(ctx context.Context, index string, skipInitalScan bool, definition []interface{}) *StatusCmd
// FTConfigGet(ctx context.Context, option string) *MapMapStringInterfaceCmd
// FTConfigSet(ctx context.Context, option string, value interface{}) *StatusCmd
// FTCreate(ctx context.Context, index string, options *FTCreateOptions, schema ...*FieldSchema) *StatusCmd
// FTCursorDel(ctx context.Context, index string, cursorId int) *StatusCmd
// FTCursorRead(ctx context.Context, index string, cursorId int, count int) *MapStringInterfaceCmd
// FTDictAdd(ctx context.Context, dict string, term ...interface{}) *IntCmd
// FTDictDel(ctx context.Context, dict string, term ...interface{}) *IntCmd
// FTDictDump(ctx context.Context, dict string) *StringSliceCmd
// FTDropIndex(ctx context.Context, index string) *StatusCmd
// FTDropIndexWithArgs(ctx context.Context, index string, options *FTDropIndexOptions) *StatusCmd
// FTExplain(ctx context.Context, index string, query string) *StringCmd
// FTExplainWithArgs(ctx context.Context, index string, query string, options *FTExplainOptions) *StringCmd
// FTInfo(ctx context.Context, index string) *FTInfoCmd
// FTSpellCheck(ctx context.Context, index string, query string) *FTSpellCheckCmd
// FTSpellCheckWithArgs(ctx context.Context, index string, query string, options *FTSpellCheckOptions) *FTSpellCheckCmd
// FTSearch(ctx context.Context, index string, query string) *FTSearchCmd
// FTSearchWithArgs(ctx context.Context, index string, query string, options *FTSearchOptions) *FTSearchCmd
// FTSynDump(ctx context.Context, index string) *FTSynDumpCmd
// FTSynUpdate(ctx context.Context, index string, synGroupId interface{}, terms []interface{}) *StatusCmd
// FTSynUpdateWithArgs(ctx context.Context, index string, synGroupId interface{}, options *FTSynUpdateOptions, terms []interface{}) *StatusCmd
// FTTagVals(ctx context.Context, index string, field string) *StringSliceCmd

@rueian rueian added help wanted Extra attention is needed good first issue Good for newcomers feature labels Aug 13, 2024
@Akhil-2001
Copy link

Interesting. I'd appreciate any hints which would help me. Can I try working on this?

@rueian
Copy link
Collaborator Author

rueian commented Aug 14, 2024

Hi @Akhil-2001,

Thank you for your interest. Would you mind trying #607 first? That will be much easier than this one.

@rueian
Copy link
Collaborator Author

rueian commented Aug 29, 2024

Hi @Akhil-2001, sorry that #607 has been resolved. Would you like to continue to work on the current #608?

@unknowntpo
Copy link
Contributor

I can help !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants