有rescore插件的实现示例
https://github.com/elastic/elasticsearch/tree/master/plugins/examples/rescore
由ES社区提供
问题是如何将其应用于查询?
最佳答案
GET test-idx/_search
{
"query": {
"match" : {
"fullName" : "some-name"
}
},
"rescore" : {
"window_size" : 2,
"example" : { //check this line
"factor":2.0
}
}
}