Commit 3f56fc67 authored by 段英荣's avatar 段英荣

modify

parent 6ff996df
...@@ -165,15 +165,15 @@ class TopicUtils(object): ...@@ -165,15 +165,15 @@ class TopicUtils(object):
}, },
"weight": 3 "weight": 3
}, },
{ # {
"linear": { # "linear": {
"create_time": { # "create_time": {
"scale": "1d", # "scale": "1d",
"decay": 0.99 # "decay": 0.99
} # }
}, # },
"weight": 500 # "weight": 500
} # }
] ]
if len(user_similar_score_list)>0: if len(user_similar_score_list)>0:
...@@ -306,6 +306,7 @@ class TopicUtils(object): ...@@ -306,6 +306,7 @@ class TopicUtils(object):
"includes":["id","group_id","offline_score","user_id","edit_tag_list"] "includes":["id","group_id","offline_score","user_id","edit_tag_list"]
} }
q["sort"] = [ q["sort"] = [
"create_time_val",
{ {
"_script":{ "_script":{
"type":"number", "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