【发布时间】:2016-04-16 21:40:04
【问题描述】:
我希望删除所有分数低于1 的文档,但以下查询不起作用:
curl "http://localhost:9200/megacorp/_search" -d '{
"min_score": 1,
"query": {
"matchAll": {}
},
"rescore": {
"query": {
"score_mode": "min",
"rescore_query": {
"match": {"first_name": "Jane"}
}
}
}
}'
看起来min_score 不适用于rescore。
这样做的正确方法是什么?
【问题讨论】:
-
@user 这是
score_mode。
标签: json elasticsearch min