mirror of https://github.com/milvus-io/milvus.git
[skip ci] Update search_param_analysis func of utils on benchmark (#13422)
Signed-off-by: wangting0128 <ting.wang@zilliz.com>pull/13428/head
parent
bb4c974c71
commit
3d9f7faeb6
|
@ -196,6 +196,7 @@ def search_param_analysis(vector_query, filter_query):
|
|||
logger.error("[search_param_analysis] vector not dict or len != 1: %s" % str(vector))
|
||||
return False
|
||||
|
||||
expression = None
|
||||
if isinstance(filter_query, list) and len(filter_query) != 0 and "range" in filter_query[0]:
|
||||
filter_range = filter_query[0]["range"]
|
||||
if isinstance(filter_range, dict) and len(filter_range) == 1:
|
||||
|
@ -214,9 +215,9 @@ def search_param_analysis(vector_query, filter_query):
|
|||
else:
|
||||
logger.error("[search_param_analysis] filter_range not dict or len != 1: %s" % str(filter_range))
|
||||
return False
|
||||
else:
|
||||
# else:
|
||||
# logger.debug("[search_param_analysis] range not in filter_query: %s" % str(filter_query))
|
||||
expression = None
|
||||
# expression = None
|
||||
|
||||
result = {
|
||||
"data": data,
|
||||
|
|
Loading…
Reference in New Issue