0
这是我的数据...Elasticsearch:存在的过滤掉不工作
{"score":60,"name":"bill"},
{"score":50,"name":"john"},
{"score":null,"name":"sam"}
我期待写一个过滤范围查询,这也应该包括空值。
我试过这个...期待所有3个结果,但它返回0结果...?
"filter": {
"bool": {
"must": [
{
"range": {
"score": {
"lte": 100
}
}
},
{
"exists": {
"field": "score"
}
}
]
}
}
任何帮助是非常赞赏... 感谢
你可以粘贴
bool/should
返回消息呢? – MedAli@MedAli不知道你是什么意思?没有错误....它只是返回0结果 – Slyper