Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
7c2cdd96
Commit
7c2cdd96
authored
Nov 14, 2019
by
高雅喆
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页feed日记帖子问答增加good click分排序因子
parent
ea0e2e27
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
gm_feed_cold_start.py
eda/smart_rank/gm_feed_cold_start.py
+3
-3
No files found.
eda/smart_rank/gm_feed_cold_start.py
View file @
7c2cdd96
...
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment