橡皮、老虎皮、狮子皮哪一个最不好?

es使用老版本命令插入新版本的问题!!!

Elasticsearch | 作者 Blueeye | 发布于2023年04月20日 | 阅读数:2877

各位大师好,es小白,请问一个关于es插入数据的问题,这个脚本是从参考书提供的网址下载的,参考书当时使用的版本和使用的版本有点差距,想问下下面插入的代码要怎么修改才能插进去,目前一直在报错。软件版本;7.13
运行环境;linux
代码块;
curl -s -XPOST -H 'Content-Type: application/json' "$ADDRESS/get-together/event/100?parent=1" -d'{
  "host": ["Lee", "Troy"],
  "title": "Liberator and Immutant",
  "description": "We will discuss two different frameworks in Clojure for doing different things. Liberator is a ring-compatible web framework based on Erlang Webmachine. Immutant is an all-in-one enterprise application based on JBoss.",
  "attendees": ["Lee", "Troy", "Daniel", "Tom"],
  "date": "2013-09-05T18:00",
  "location_event": {
    "name": "Stoneys Full Steam Tavern",
    "geolocation": "39.752337,-105.00083"
  },
  "reviews": 4
}'
错误日志;{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"request [/get-together/event/100] contains unrecognized parameter: [parent]"}],"type":"illegal_argument_exception","reason":"request [/get-together/event/100] contains unrecognized parameter: [parent]"},"status":400}
已邀请:

Charele - Cisco4321

赞同来自:

parent=1
这作用是啥

FFFrp

赞同来自:

https://www.elastic.co/guide/e ... .html 看你是哪个版本参考下官方文档

要回复问题请先登录注册