Commit c15e5ed6 authored by 段英荣's avatar 段英荣

add batch_recommend_user

parent 873e083b
......@@ -197,7 +197,7 @@ class ESPerform(object):
result_dict["aggregations"] = res["aggregations"]
return result_dict
else:
res = es_cli.msearch(body='\n'.join(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))
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