[skip ci] Update search_param_analysis func of utils on benchmark (#13422)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/13428/head
wt 2021-12-15 12:11:21 +08:00 committed by GitHub
parent bb4c974c71
commit 3d9f7faeb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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,