Commit 62ccacc7 authored by 高雅喆's avatar 高雅喆

首页feed召回非视频优先

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