首页 > 解决方案 > 找出在弹性搜索中哪个查询应该返回 true

问题描述

我想找到一种方式,在我的弹性搜索查询中查询返回 true

  "query": {
    "bool": {
      "filter": [
        {
          "bool": {
            "should": [
              {
                "match": {
                  "status": {
                    "query": "ACTIVE"
                  }
                }
              },
              {
                "match": {
                  "status": {
                    "query": "MENU_UPDATE"
                  }
                }
              }
            ]
          }
        }

      ]
    }
  }
}```

标签: elasticsearch

解决方案


推荐阅读