es过滤集提升权重

时间:2019-02-19 10:06:21   收藏:0   阅读:550
es

{ "query":{ "function_score":{ "query":{ "match":{ "name":"头痛" } }, "functions":[ { "field_value_factor":{ "field":"reference_count" }, "weight": 0.5 }, { "filter":{ "range":{ "reference_time_new":{ "gte": "now-3d" } } }, "weight": 3 }, { "filter":{ "range":{ "reference_time_new":{ "gte": "now-5d", "lte":"now-3d" } } }, "weight": 2.0 } ], "score_mode": "sum", "boost_mode":"sum", "max_boost":5 } } }

  

原文:https://www.cnblogs.com/jiaxiaoxin/p/10399228.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!