如何将re-score插件应用于elasticsearch查询

如何将re-score插件应用于elasticsearch查询,
Warning: implode(): Invalid arguments passed in /data/phpspider/zhask/webroot/tpl/detail.html on line 45
,,这里有一个rescore插件实现示例 由ES社区提供 问题是如何将其应用于查询 GET test-idx/_search { "query": { "match" : { "fullName" : "some-name" } }, "rescore" : { "window_size" : 2, "example" : { //check this line

这里有一个rescore插件实现示例 由ES社区提供

问题是如何将其应用于查询

GET test-idx/_search
{
    "query": {
        "match" : {
            "fullName" : "some-name"
        }
    },
    "rescore" : {
        "window_size" : 2,
        "example" : {        //check this line
             "factor":2.0
         }
    }
}