Commit 0e617ec4 authored by Kai's avatar Kai

add logging

parent 3a1a9224
......@@ -514,7 +514,7 @@ class TopicUtils(object):
}
if len(topic_tag_list) > 0:
query_function_score["query"]["bool"]["must"] += {
query_function_score["query"]["bool"]["should"] += {
"terms": {
"tag_list": topic_tag_list
}
......
......@@ -300,8 +300,8 @@ def topic_detail_page_recommend(device_id="", user_id=-1, topic_id=-1, topic_pic
if topic_user_id != -1:
topic_user_result = TopicUtils.top_get_topic_detail_recommend_list(user_id, topic_id, have_read_topic_list,
size, es_cli_obj,
index_type="topic", routing="4,5,6",
topic_tag_list=topic_tag_list)
index_type="topic", routing="4,5,6"
)
topic_user_size = len(topic_user_result)
have_read_topic_list.extend(topic_user_result)
if topic_user_size < size:
......
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