Commit 30da6132 authored by 段英荣's avatar 段英荣

Merge branch 'dev' into 'master'

modify

See merge request !43
parents 282c38c2 0646e3d4
...@@ -76,6 +76,14 @@ def pick_topic(user_id,pick_id,offset=0,size=10): ...@@ -76,6 +76,14 @@ def pick_topic(user_id,pick_id,offset=0,size=10):
{ {
"filter": {"match": {"content_level": 3}}, "filter": {"match": {"content_level": 3}},
"weight": 2 "weight": 2
},
{
"gauss": {
"update_time": {
"scale": "1d",
"decay": 0.5
}
}
} }
] ]
...@@ -94,7 +102,7 @@ def pick_topic(user_id,pick_id,offset=0,size=10): ...@@ -94,7 +102,7 @@ def pick_topic(user_id,pick_id,offset=0,size=10):
} }
}, },
"score_mode": "sum", "score_mode": "sum",
"boost_mode": "sum", "boost_mode": "replace",
"functions":functions_list "functions":functions_list
} }
......
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