Commit 0646e3d4 authored by 段英荣's avatar 段英荣

modify

parent 9541e833
......@@ -76,6 +76,14 @@ def pick_topic(user_id,pick_id,offset=0,size=10):
{
"filter": {"match": {"content_level": 3}},
"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):
}
},
"score_mode": "sum",
"boost_mode": "sum",
"boost_mode": "replace",
"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