elasticsearch script_score中的多个Math.pow无法正常工作

时间:2019-06-13 13:05:27

标签: elasticsearch

我有一个es查询,该查询使用script_score和彼此嵌套的多个Math.pow。 我的公式是脚本=“ _score + 4096 * 2 ^(-1 /(x / 64)^(1/2))”

"script_score": {
        "script": "_score + 4096/Math.pow(2,Math.pow(doc['count'].value/64, 0.5))"

但是它不起作用。

0 个答案:

没有答案
相关问题