Commit 6e9d54f4 authored by 段英荣's avatar 段英荣

modify

parent 59037b9f
...@@ -168,7 +168,7 @@ class TopicUtils(object): ...@@ -168,7 +168,7 @@ class TopicUtils(object):
"weight": 3 "weight": 3
}, },
{ {
"linear": { "gauss": {
"create_time": { "create_time": {
"scale": "1d", "scale": "1d",
"decay": 0.99 "decay": 0.99
...@@ -180,7 +180,7 @@ class TopicUtils(object): ...@@ -180,7 +180,7 @@ class TopicUtils(object):
if len(user_similar_score_list) > 0: if len(user_similar_score_list) > 0:
for item in user_similar_score_list[:100]: for item in user_similar_score_list[:100]:
score_item = 3 * 10 * item[1] score_item = 2 + item[1]
functions_list.append( functions_list.append(
{ {
"filter": {"bool": { "filter": {"bool": {
......
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