注释类型 ESField


  • 元素详细资料

    • value

      String value
      字段名称,默认为类字段名称
      默认值:
      ""
    • type

      数据类型
      默认值:
      Auto
    • index

      boolean index
      是否启用索引
      默认值:
      true
    • copyToKeyword

      boolean copyToKeyword
      是否复制到全局检索
      默认值:
      false
    • store

      @Deprecated boolean store
      已过时。
      暂不可用,默认情况下不存储
      默认值:
      false
    • fieldData

      @Deprecated boolean fieldData
      已过时。
      暂不可用,还没有研究明白
      默认值:
      false
    • original

      boolean original
      分词后,是否保留原始值用于聚合计算或排序

      对于分词字段,如果需要排序或者聚合计算的话,需要设置original为true,排序时指定排序字段为 字段名.original

      默认值:
      false
    • analyzer

      ESAnalyzerType analyzer
      指定字段使用的分词
      默认值:
      none
    • searchAnalyzer

      ESAnalyzerType searchAnalyzer
      指定字段使用搜索时的分词
      默认值:
      none
    • format

      String format
      默认值:
      ""
    • ignoreFields

      @Deprecated String[] ignoreFields
      已过时。
      暂不可用,如果某个字段需要被忽略
      默认值:
      {}
    • includeInParent

      @Deprecated boolean includeInParent
      已过时。
      暂不可用
      默认值:
      false