如何使用Postman映射Elasticsearch中的列(非法参数例外)

问题描述 投票:1回答:1

我正在学习Elasticsearch和Postman。我已经设置了Elasticsearch,它在我的localhost:9200上启动并运行。我正在跟随Postman的Elasticsearch教程。

enter image description here

我把对象放在身体里作为JSON enter image description here

而且我收到以下错误。

enter image description here

json elasticsearch postman
1个回答
1
投票

类型“字符串”不再使用,所以我将其更改为“文本”

"type": "text"这似乎有效。当我调用GET请求localhost:9200/team/_mapping时,我得到的结果很好。

不过,它说

正在从7.0中的Elasticsearch中删除类型,默认情况下,映射元素将不再将类型名称返回为顶级键。

我真的很新,(今天开始学习弹性研究),所以我不太详细。

© www.soinside.com 2019 - 2024. All rights reserved.