Commit 07550381 authored by 李小芳's avatar 李小芳

add

parent 915991fc
......@@ -111,7 +111,7 @@ def has_service(tag_list, content_keyword):
{"terms": {"closure_tags": content_keyword}}],
"minimum_should_match": 1}}
res = es_query("service", q, 0, 1)
res = es_query(doc="service", body=q, offset=0, size=1)
if res:
if res['hits']['total'] > 0:
return True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment