Commit 8b9baf8b authored by 段英荣's avatar 段英荣

Merge branch 'dev' into 'master'

modify home_recommend score

See merge request !81
parents 35af76f3 6a469613
...@@ -133,7 +133,7 @@ class TopicUtils(object): ...@@ -133,7 +133,7 @@ class TopicUtils(object):
"gauss": { "gauss": {
"update_time": { "update_time": {
"scale": "1d", "scale": "1d",
"decay": 0.5 "decay": 0.9
} }
} }
}, },
...@@ -141,7 +141,7 @@ class TopicUtils(object): ...@@ -141,7 +141,7 @@ class TopicUtils(object):
"gauss": { "gauss": {
"create_time": { "create_time": {
"scale": "1d", "scale": "1d",
"decay": 0.8 "decay": 0.9
} }
} }
} }
...@@ -235,7 +235,7 @@ class TopicUtils(object): ...@@ -235,7 +235,7 @@ class TopicUtils(object):
"type":"number", "type":"number",
"script":{ "script":{
"lang": "expression", "lang": "expression",
"source": "_score+doc['offline_score']" "source": "_score*doc['offline_score']"
# "lang":"painless", # "lang":"painless",
# "source":"_score+params._source.offline_score" # "source":"_score+params._source.offline_score"
}, },
......
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