Commit 5b8f88f0 authored by 段英荣's avatar 段英荣

modify

parent a9f82c84
......@@ -307,18 +307,18 @@ class TopicUtils(object):
"includes":["id","group_id","offline_score","user_id","edit_tag_list"]
}
q["sort"] = [
{
"_script":{
"type":"number",
"script":{
"lang": "expression",
"source": "_score+doc['offline_score']"
# "lang":"painless",
# "source":"_score+params._source.offline_score"
},
"order":"desc"
}
},
# {
# "_script":{
# "type":"number",
# "script":{
# "lang": "expression",
# "source": "_score+doc['offline_score']"
# # "lang":"painless",
# # "source":"_score+params._source.offline_score"
# },
# "order":"desc"
# }
# },
"_score"
]
result_dict = ESPerform.get_search_results(ESPerform.get_cli(), sub_index_name="topic", query_body=q,
......
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