未验证 提交 49218f54 编写于 作者: T ThreadDao 提交者: GitHub

fix dsl term with multi fields (#3403)

Signed-off-by: Nzongyufen <zongyufen@foxmail.com>
上级 2633319c
......@@ -1261,9 +1261,8 @@ class TestSearchDSL(object):
term = update_term_expr({"term": {}}, [term_first, term_second])
expr = {"must": [gen_default_vector_expr(default_query), term]}
query = update_query_expr(default_query, expr=expr)
res = connect.search(collection, query)
assert len(res) == nq
assert len(res[0]) == 0
with pytest.raises(Exception) as e:
res = connect.search(collection, query)
# TODO
@pytest.mark.level(2)
......@@ -1327,8 +1326,8 @@ class TestSearchDSL(object):
expr = {"must": [gen_default_vector_expr(default_query), range]}
query = update_query_expr(default_query, expr=expr)
res = connect.search(collection, query)
assert len(res) == nq
assert len(res[0]) == 0
with pytest.raises(Exception) as e:
res = connect.search(collection, query)
"""
******************************************************************
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册