Skip to content

Commit

Permalink
fix: get get param from wrong dict (#2537)
Browse files Browse the repository at this point in the history
Signed-off-by: lixinguo <xinguo.li@zilliz.com>
Co-authored-by: lixinguo <xinguo.li@zilliz.com>
  • Loading branch information
smellthemoon and lixinguo authored Jan 2, 2025
1 parent e398893 commit cd89fe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymilvus/client/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -1002,13 +1002,13 @@ def search_requests_with_expr(
# no more parameters will be written searchParams.params
# to ensure compatibility and milvus can still get a json format parameter
# try to write all the parameters under searchParams into searchParams.Params
for key, value in search_params.items():
for key, value in param.items():
if key in params:
if params[key] != value:
raise ParamError(
message=f"ambiguous parameter: {key}, in search_param: {value}, in search_param.params: {params[key]}"
)
else:
elif key != "params":
params[key] = value
search_params["params"] = params

Expand Down

0 comments on commit cd89fe4

Please sign in to comment.