在@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")