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

Python initial vss commands #2358

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

prateek-kumar-improving
Copy link
Contributor

No description provided.

Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
@shohamazon
Copy link
Collaborator

shohamazon commented Sep 29, 2024

please take a look at this pr:

#868

It follows the original design and was nearly complete. It's up for discussion, but I suggest we stick to this design. 🙂

) -> TOK:
args: List[TEncodable] = [indexName]
args.extend(options.getCreateOptions())
return cast(TOK, await client._execute_command(RequestType.FtCreate, args))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

take a look at the implemented json commands, we use custom_command :)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the reason is that when you will implement the same command in node/ java , you wont be able to use _execute_command without changing it to be public

@@ -0,0 +1,21 @@
from typing import List, cast
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure if we want to name this file vss, search.py might be a better name

client: TGlideClient,
indexName: TEncodable,
options: FtCreateOptions
) -> TOK:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docs

Copy link
Collaborator

@shohamazon shohamazon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's discuss the design together :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants