美文网首页
elasticsearch Rejecting mapping

elasticsearch Rejecting mapping

作者: 辛多雷 | 来源:发表于2019-12-29 22:46 被阅读0次

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