elasticsearch,aws-elasticsearch,Amazon Web Services,elasticsearch,Aws Elasticsearch" /> elasticsearch,aws-elasticsearch,Amazon Web Services,elasticsearch,Aws Elasticsearch" />

Amazon web services 通过过滤源字段上的数据,在elasticsearch AWS中发布查询分页数据的请求正文

Amazon web services 通过过滤源字段上的数据,在elasticsearch AWS中发布查询分页数据的请求正文,amazon-web-services,elasticsearch,aws-elasticsearch,Amazon Web Services,elasticsearch,Aws Elasticsearch,我正在使用这个JSON来过滤带有paymentStatus的付款。 我想用一些搜索文本x过滤确认待定付款,我不知道应该在哪里添加x以获得分页过滤付款 { "from": 0, "size": 20, "query": { "multi_match": { "query": "ConfirmationPending", "fields": ["paymentStatus"] } } } 您可以通过利用bool/must查询组合多个约束: {

我正在使用这个JSON来过滤带有paymentStatus的付款。 我想用一些搜索文本
x
过滤确认待定付款,我不知道应该在哪里添加
x
以获得分页过滤付款

{
  "from": 0,
  "size": 20,
  "query": {
    "multi_match": {
      "query": "ConfirmationPending",
      "fields": ["paymentStatus"]
    }
  }
}

您可以通过利用
bool/must
查询组合多个约束:

{
  "from": 0,
  "size": 20,
  "query": {
    "bool": {
      "must": [
        {
          "match": {
            "paymentStatus": "ConfirmationPending"
          }
        },
        {
          "match": {
            "otherField": "x"
          }
        }
      ]
    }
  }
}

您想在哪个字段中搜索
x
?这方面运气好吗?