Commit c869565f authored by 谢祁峰's avatar 谢祁峰

add rank topic sort

parent f4df8516
...@@ -295,9 +295,18 @@ class TopicUtils(object): ...@@ -295,9 +295,18 @@ class TopicUtils(object):
# "order": "desc" # "order": "desc"
# } # }
# }, # },
# {
# "offline_score": {
# "order": "desc"
# }
# },
{ {
"offline_score": { "_script": {
"order": "desc" "order": "desc",
"script": {
"inline": "10*doc['topic_ctr_30'].value+doc['like_rate_30'].value+2*doc['topic_ctr_all'].value+doc['like_rate_all'].value"
},
"type": "number"
} }
}, },
{ {
......
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