Commit 7c2cdd96 authored by 高雅喆's avatar 高雅喆

首页feed日记帖子问答增加good click分排序因子

parent ea0e2e27
......@@ -30,8 +30,8 @@ def search_diary_by_match_phrase(tag_names, city_tag_id):
}}
]
sort_list += [
{'has_video_cover': {'order': 'asc'}},
{"good_click": {"order": "desc"}},
{'has_video_cover': {'order': 'asc'}},
{'offline_score': {'order': 'desc'}},
{'last_update_time': {'order': 'desc'}}
]
......@@ -90,8 +90,8 @@ def search_topic_by_match_phrase(tag_names):
"includes": ["id"]
}
q["sort"] = [
{"is_video": {"order": "asc"}},
{"good_click": {"order": "desc"}},
{"is_video": {"order": "asc"}},
{"tractate_score": {"order": "desc"}}
]
es_res = es_query("tractate", q, offset=0, size=200)
......@@ -103,8 +103,8 @@ def search_topic_by_match_phrase(tag_names):
def search_qa_by_match_phrase(tag_names):
sort_list = [
{'has_picture': {'order': 'desc'}},
{"good_click": {"order": "desc"}},
{'has_picture': {'order': 'desc'}},
{'smart_rank': {'order': 'desc'}}
]
q = dict()
......
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