Elasticsearch -“error”:“no handler found for uri

tmb3ates  于 7个月前  发布在  ElasticSearch
关注(0)|答案(1)|浏览(662)

我是Elasticsearch的新手。一切看起来都很好,但是当我运行下面的json代码时。它给出了错误:“error”:“no handler found for uri [/vehicles/car/01?pretty=&pretty=true] and method [PUT]”

PUT /vehicles/car/01?pretty
{
  "make": "Lexus",
  "color": "Black",
  "HP": 300
}

字符串
我已经在Downloads文件夹中解压缩了Elasticsearch和kebana。通过终端安装了Brew和JAVA JDK。

vsmadaxz

vsmadaxz1#

你使用的文档一定很旧,因为mapping types have been removed in 8.0,所以你的URL中的car URI部分就是导致问题的原因。只要使用_doc而不是car就可以了。

change this
              ||||
              vvvv
PUT /vehicles/_doc/01?pretty
{
  "make": "Lexus",
  "color": "Black",
  "HP": 300
}

字符串

相关问题