-
Notifications
You must be signed in to change notification settings - Fork 50
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
base: main
Are you sure you want to change the base?
Python initial vss commands #2358
Conversation
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>
please take a look at this pr: 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)) |
There was a problem hiding this comment.
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
:)
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docs
There was a problem hiding this 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 :)
No description provided.