【问题标题】:How can I send an conditional GET method to elasticearch from postman?如何从邮递员向弹性搜索发送条件 GET 方法?
【发布时间】:2021-12-23 06:04:31
【问题描述】:

我有一个 GET 请求,它的查询正文如下所示:

GET /courses/_search
{
  "query": {
    "bool": {
      "must": [
        {"match": {"teacher.keyword": "Andrew Ng"}}
      ]
    } 
  }
}

在 Postman 中,GET 请求不能有“正文”。那么如何将此请求发送到elasticsearch?我应该如何在请求中指定主体的这种嵌套结构?

【问题讨论】:

    标签: rest elasticsearch get postman kibana


    【解决方案1】:

    请改用POST ?

    Elasticsearch 稍微宽松一点,supports both GET 和 POST 可以发送带有负载的请求。

    【讨论】:

      猜你喜欢
      • 2016-04-03
      • 2021-06-24
      • 1970-01-01
      • 2021-08-15
      • 1970-01-01
      • 1970-01-01
      • 2019-12-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多