在@Document注解中添加type类型即可
spring boot 在插入elasticsearch 时报错
‵‵‵
Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xxx]
例如:
@Document(indexName = "data",type = "docs")
在@Document注解中添加type类型即可
spring boot 在插入elasticsearch 时报错
‵‵‵
Rejecting mapping update to [xxx] as the final mapping would have more than 1 type: [xxx, xxx]
例如:
@Document(indexName = "data",type = "docs")
本文标题:elasticsearch Rejecting mapping
本文链接:https://www.haomeiwen.com/subject/hcbuoctx.html
网友评论