## function_score函数,自定义相关度分数算法
GET customer/_search
{
"query": {
"function_score": {
"query": {
"multi_match": {
"query": "java spark",
"fields": ["introduce"]
}
},
"field_value_factor": {
"field": "follower_num",
"modifier": "log1p",
"factor": 0.5
},
"boost_mode": "sum",
"max_boost": 1
}
}
}
ES7.16.2基础操作之function_score(十)
最新推荐文章于 2024-03-10 13:59:45 发布