Commit 77641c72 authored by 段英荣's avatar 段英荣

modify home_recommend score

parent 01428384
...@@ -230,7 +230,6 @@ class TopicUtils(object): ...@@ -230,7 +230,6 @@ class TopicUtils(object):
q["_source"] = { q["_source"] = {
"include":["id","group_id","offline_score"] "include":["id","group_id","offline_score"]
} }
# for 压测
q["sort"] = [ q["sort"] = [
{ {
"_script":{ "_script":{
...@@ -243,7 +242,8 @@ class TopicUtils(object): ...@@ -243,7 +242,8 @@ class TopicUtils(object):
}, },
"order":"desc" "order":"desc"
} }
} },
"_score"
] ]
result_dict = ESPerform.get_search_results(ESPerform.get_cli(), sub_index_name="topic", query_body=q, result_dict = ESPerform.get_search_results(ESPerform.get_cli(), sub_index_name="topic", query_body=q,
offset=offset, size=size) offset=offset, size=size)
......
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