elasticsearch学习之根据发布时间设置衰减函数
衰减函数decay functionion 高斯衰减
GET _search { "_source": ["title","release_date"], "query": { "function_score": { "query": { "match_all": {} }, "functions": [ { "gauss": { "release_date": { "origin": "now", "scale": "900d", "decay": 0.5 } } } ] } } }
我的网站 http://www.a-du.net