elasticsearch注解实现fields

2022-07-11 09:47:39

mapping效果:

"label": {
            "type": "keyword",
            "fields": {
              "IKS": {
                "type": "text",
                "analyzer": "ikIndexAnalyzer"
              }
            }
          }
@Column(name = "标签")
    @MultiField(
            mainField = @Field(type = FieldType.Keyword),
            otherFields = {
                    @InnerField(suffix = "IKS", type = FieldType.Text, analyzer = "ikIndexAnalyzer")
            }
    )
    protected String label;
  • 作者:1001.2014.3001
  • 原文链接:https://blog.csdn.net/wangh92/article/details/84847823
    更新时间:2022-07-11 09:47:39