Skip to content

Commit

Permalink
Search could get ignore_growing option from kwargs (#1343) (#1365)
Browse files Browse the repository at this point in the history
Signed-off-by: aoiasd <[email protected]>
  • Loading branch information
aoiasd authored Apr 17, 2023
1 parent 389d2d1 commit 2b3f18d
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 @@ -464,7 +464,7 @@ def search_requests_with_expr(cls, collection_name, data, anns_field, param, lim
raise ParamError(message=f"Field {anns_field} doesn't exist in schema")
dimension = int(fields_schema[fields_name_locs[anns_field]]["params"].get("dim", 0))

ignore_growing = param.get("ignore_growing",False)
ignore_growing = param.get("ignore_growing",False) or kwargs.get("ignore_growing",False)
params = param.get("params", {})
if not isinstance(params, dict):
raise ParamError(message=f"Search params must be a dict, got {type(params)}")
Expand Down

0 comments on commit 2b3f18d

Please sign in to comment.