elasticsearch - 找出在弹性搜索中哪个查询应该返回 true
问题描述
我想找到一种方式,在我的弹性搜索查询中查询返回 true
"query": {
"bool": {
"filter": [
{
"bool": {
"should": [
{
"match": {
"status": {
"query": "ACTIVE"
}
}
},
{
"match": {
"status": {
"query": "MENU_UPDATE"
}
}
}
]
}
}
]
}
}
}```
解决方案
推荐阅读
- mysql - MySQL:检查一列是否具有基于另一列的值
- html-table - Gmail 在我的 HTML 签名的第一行之后的行上添加 STRANGE 填充
- php - 从我的数据库中获取个人资料图片以显示在 php 页面上
- javascript - Laravel FatalErrorException:内存不足
- c - 如何修改 SYN/ACK 数据包的 IP 标头选项?
- dynamics-crm - CRM OnPrem--> Plugin--> Connect to External (SOAP) Webservice Error with connection
- javascript - 类型 [] 中缺少 JavaScript 类型脚本属性 0
- php - 将php foreach放入带有空格的单个变量逗号分隔字符串
- android - 切换到另一个活动时保存状态活动
- batch-file - 批处理文件 - 不能在子例程中去除变量