注释类型 ESDynamicTemplate
@Inherited
@Retention(RUNTIME)
@Target(TYPE)
@Repeatable(ESDynamicTemplates.class)
public @interface ESDynamicTemplate
Created by bean on 2020/8/4.
-
必需元素概要
所需元素 -
可选元素概要
可选元素
-
元素详细资料
-
value
String value
-
-
-
matchMappingType
String matchMappingType- 默认值:
- "*"
-
match
String match- 默认值:
- "*"
-
unmatch
String unmatch- 默认值:
- ""
-
mappingType
ESFieldType mappingType- 默认值:
- Keyword
-
analyzer
ESAnalyzerType analyzer分词- 默认值:
- none
-
searchAnalyzer
ESAnalyzerType searchAnalyzer搜索时的分词- 默认值:
- none
-
format
String format- 默认值:
- ""
-
fields
ESField[] fields- 默认值:
- {}
-
copyToKeyword
boolean copyToKeyword- 默认值:
- false
-
original
boolean original分词后,是否保留原始值用于聚合计算或排序对于分词字段,如果需要排序或者聚合计算的话,需要设置original为true,排序时指定排序字段为 字段名.original
- 默认值:
- false
-