Commit 480cda64 authored by Kai's avatar Kai

update

parent 1dc24779
......@@ -220,7 +220,7 @@ class TopicUtils(object):
{
"filter": {"bool": {
"should": {"term": {"user_id": topic_user_id}}}},
"weight": 100000
"weight": 5000
}
)
query_function_score = {
......
......@@ -283,7 +283,7 @@ def topic_detail_page_recommend(device_id="", user_id=-1, topic_id=-1, topic_pic
topic_user_id=topic_user_id, current_topic_id=topic_id,
topic_tag_list=topic_tag_list)
topic_tag_recommend_list = TopicUtils.get_recommend_topic_ids(user_id, tag_id=-1, single_size=size, offset=offset, size=size,
user_recommend_list = TopicUtils.get_recommend_topic_ids(user_id, tag_id=-1, single_size=size, offset=offset, size=size,
topic_user_id=topic_user_id, current_topic_id=topic_id,
topic_tag_list=topic_tag_list)
......
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