Commit 2f393f1a authored by 段英荣's avatar 段英荣

add batch_recommend_user

parent c15e5ed6
...@@ -197,7 +197,7 @@ class ESPerform(object): ...@@ -197,7 +197,7 @@ class ESPerform(object):
result_dict["aggregations"] = res["aggregations"] result_dict["aggregations"] = res["aggregations"]
return result_dict return result_dict
else: else:
res = es_cli.msearch(body='\n'.join(str(query_item) for query_item in query_body), index=official_index_name, doc_type=doc_type) res = es_cli.msearch(body="\n".join(str(query_item) for query_item in query_body), index=official_index_name, doc_type=doc_type)
logging.info("duan add,msearch res:%s" % str(res)) logging.info("duan add,msearch res:%s" % str(res))
return res return res
......
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