我想从elasticsearch查询类似于以下内容的数据:
Select * From tbl where field not in (...)是否有一种方法可以在下面的elasticsearch查询中添加非类型逻辑?
GET /index/type/_search
{
"query": {
"match": {
"FIELD": "TEXT"
}
}
}发布于 2014-04-17 17:01:41
使用boolQuery并在bool查询中使用mustNot
{
"query": {
"bool": {
"must_not": [
{
"match": {
"FIELD": "TEXT"
}
}
]
}
}
}https://stackoverflow.com/questions/23138939
复制相似问题