【发布时间】:2013-07-02 06:33:16
【问题描述】:
{
"query": {
"custom_score": {
"query": {
"match": {
"xxx": {
"query": "foobar"
}
}
},
"filter": {
"and": [
{
"query": {
"match": {
"yyyy": {
"query": "barfoo"
}
}
}
}
]
}
},
"script": "_score * doc['_score']"
}
}
这会出错
[custom_score] query does not support [filter]
那么如何评估这样的查询呢?
【问题讨论】:
-
你的意思是索引时间提升吗?您能否详细说明您想要实现的目标?
-
更新了问题。
-
谢谢,但我不明白 :) 你能解释一下你想用你的脚本实现什么吗?我认为您应该重新表述您的问题,因为它不是在建立索引时而是在增加查询时间。此外,如果您再次查看您的异常,您应该会发现一条更详细的消息,其中包含查询失败的原因。
-
更新了我的问题以清除它
标签: php elasticsearch