ZBLOG

Caused by: org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception [type=illegal_argument_exception, reason=mapper [business] cannot be changed from type [keyword] to [text]]

This error message indicates that there is an issue with the mapping of the Elasticsearch index. The “business” field was originally mapped as a “keyword” type, which cannot be changed to a “text” type.

The reason for this limitation is that “keyword” fields are stored in an optimized manner for exact matching, while “text” fields are analyzed and broken down into individual terms for full-text search. Changing the type of a field from “keyword” to “text” would require reindexing all the data in the index, which can be a time-consuming and resource-intensive process.

To resolve this issue, you may need to either create a new index with the correct mapping or adjust the mapping of the existing index to accommodate the desired data type for the “business” field. Note that changing the mapping of an existing index can also cause data loss if the new mapping does not match the existing data. Therefore, it is recommended to test any changes on a smaller set of data before applying them to the entire index.

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=2232

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?