elasticsearch Rejecting mapping update to as the final mapping would have more than 1 type

在@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 update to as the final mapping would have more than 1 type)