From e4505ef501e10506780de84aa73b48a866e295e0 Mon Sep 17 00:00:00 2001 From: "cai.zhang" Date: Fri, 8 Nov 2024 14:34:18 +0800 Subject: [PATCH] Use filter_params for milvus client (#2320) Signed-off-by: Cai Zhang --- pymilvus/milvus_client/milvus_client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pymilvus/milvus_client/milvus_client.py b/pymilvus/milvus_client/milvus_client.py index b217e4c5c..bed9f5062 100644 --- a/pymilvus/milvus_client/milvus_client.py +++ b/pymilvus/milvus_client/milvus_client.py @@ -401,6 +401,7 @@ def search( output_fields=output_fields, partition_names=partition_names, timeout=timeout, + expr_params=kwargs.pop("filter_params", {}), **kwargs, ) except Exception as ex: @@ -474,6 +475,7 @@ def query( output_fields=output_fields, partition_names=partition_names, timeout=timeout, + expr_params=kwargs.pop("filter_params", {}), **kwargs, ) except Exception as ex: @@ -621,6 +623,7 @@ def delete( partition_name, timeout=timeout, param_name="filter or ids", + expr_params=kwargs.pop("filter_params", {}), **kwargs, ) if res.primary_keys: