【问题标题】:Elasticsearch Specifying types in bulk requests is deprecatedElasticsearch 不推荐在批量请求中指定类型
【发布时间】:2020-05-09 13:05:55
【问题描述】:

有这个警告我无法修复。这是我的 Logstash 模板:

{
  "index_patterns": ["test-*"],
  "mappings": {

    "_source": {
      "enabled": true
    },

    "properties": {
      "id": {
        "type": "keyword"
      },
      "type": {
        "type": "keyword"
      },
      "box_id": {
        "type": "keyword"
      }
    }
  }
}

我已经删除了“属性”周围的自定义类型,但我仍然收到此消息:

"type": "deprecation", "timestamp": "2020-01-23T14:37:46,627+05:00", “级别”:“警告”,“组件”:“o.e.d.a.b.BulkRequestParser”, “cluster.name”:“docker-cluster”,“node.name”:“docker-node”, "message": "[删除类型] 在批量请求中指定类型是 已弃用。”

我做错了什么?

【问题讨论】:

  • 而“属性”删除中的这种“类型”也无济于事。而我实际上需要这个字段...
  • 您能说明您是如何发送批量请求的吗?

标签: elasticsearch


【解决方案1】:

确保删除类型:

  • 来自请求的 URL;
  • 来自身体的所有动作(正如您已经尝试过的那样)。

【讨论】:

    猜你喜欢
    • 2019-10-18
    • 2021-03-03
    • 2021-04-02
    • 2022-01-06
    • 2021-02-05
    • 2023-04-03
    • 1970-01-01
    • 1970-01-01
    • 2017-10-07
    相关资源
    最近更新 更多