2022年4月18日 作者 zeroheart

es注解

  @Document(indexName = “products”, type = “_doc”, shards = 1, replicas = 0)

  @Setting(settingPath = “/json/settings/settings.json”) // es设置用拼音补全

  @Mapping(mappingPath = “/json/mappings/productIndex.json”) // 解决IK分词不能使用问题

原文:Spring整合ElasticSearch之通过注解动态配置Setting – 简书 (jianshu.com)