Skip to content

Commit

Permalink
Do not set metric_type default value in search params (#1469) (#1511)
Browse files Browse the repository at this point in the history
Signed-off-by: bigsheeper <[email protected]>
  • Loading branch information
bigsheeper authored Jun 1, 2023
1 parent a30d2f1 commit 1bb9bd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymilvus/client/prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ def search_requests_with_expr(cls, collection_name, data, anns_field, param, lim
raise ParamError(message=f"Search params must be a dict, got {type(params)}")
search_params = {
"topk": limit,
"metric_type": param.get("metric_type", "L2"),
"metric_type": param.get("metric_type", ""),
"params": params,
"round_decimal": round_decimal,
"offset": param.get("offset", 0),
Expand Down

0 comments on commit 1bb9bd5

Please sign in to comment.