Skip to content

Commit

Permalink
return type updated in Ft create
Browse files Browse the repository at this point in the history
Signed-off-by: Prateek Kumar <prateek.kumar@improving.com>
  • Loading branch information
prateek-kumar-improving committed Sep 27, 2024
1 parent d25ecc5 commit 1d8252e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/python/glide/async_commands/server_modules/vss.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
from glide.glide_client import TGlideClient
from glide.constants import TOK, TEncodable
from glide.protobuf.command_request_pb2 import RequestType
from glide.async_commands.server_modules.vss_options import FtCreateOptions
from glide.async_commands.server_modules.vss_options import FtCreateOptions, FtSearchOptions

async def create(
client: TGlideClient,
indexName: TEncodable,
options: FtCreateOptions
):
) -> TOK:
args: List[TEncodable] = [indexName]
args.extend(options.getCreateOptions())
return cast(TOK, await client._execute_command(RequestType.FtCreate, args))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,8 @@ def getCreateOptions(self) -> List[str]:
for fieldInfo in self.fields:
args = args + fieldInfo.getFieldInfo()
return args


class FtSearchOptions:
def __init__(self) -> None:
pass

0 comments on commit 1d8252e

Please sign in to comment.