什么是“ your_type”字段。在Elasticsearch put请求?
我正在尝试解决此错误:
FieldData默认情况下在文本字段上被禁用。在
上设置fieldData = true
并看到了一个建议我这样做的帖子;但是我没有得到给定代码中的 your_type 端点:
PUT your_index/_mapping/your_type
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不知道您拥有哪种版本的Elasticsearch,但截至7.x,映射类型已被删除。
在您的情况下,它可以像这样运行(版本> 7.x),
以了解映射类型:
这里更多信息:
I don't know what version of ElasticSearch you have but as of 7.x the mapping type has been removed.
In your case it could run like this (version > 7.x)
A little about the mapping type:
More information here:
https://www.elastic.co/guide/en/elasticsearch/reference/6.5/removal-of-types.html#_why_are_mapping_types_being_removed