Enrich now generates a mapping for the enrich index as of 8.9.0 to enable its usage in ES|QL. This process is a simple copy of the mapping type and format, optionally setting index to true if it is supported. Unfortunately, this copying process does not bring along any required configuration values from the mapping's definition.
|
if (typeAndFormat != null) { |
|
Map<String, Object> mapping = Maps.newMapWithExpectedSize(3); |
|
mapping.put("type", typeAndFormat.type); |
|
if (typeAndFormat.format != null) { |
|
mapping.put("format", typeAndFormat.format); |
|
} |
|
if (isIndexableField(mapperService, enrichField, typeAndFormat.type, mapping)) { |
|
mapping.put("index", false); |
|
} |
|
fieldMappings.put(enrichField, mapping); |
|
} |
This means that a number of mapping types are not able to be included in Enrich:
aggregate_metric_double
- Requires
metrics and default_metric
alias
scaled_float
passthrough
semantic_text
token_count
Enrich now generates a mapping for the enrich index as of 8.9.0 to enable its usage in ES|QL. This process is a simple copy of the mapping type and format, optionally setting
indexto true if it is supported. Unfortunately, this copying process does not bring along any required configuration values from the mapping's definition.elasticsearch/x-pack/plugin/enrich/src/main/java/org/elasticsearch/xpack/enrich/EnrichPolicyRunner.java
Lines 387 to 397 in 20e186a
This means that a number of mapping types are not able to be included in Enrich:
aggregate_metric_doublemetricsanddefault_metricaliaspathscaled_floatscaling_factorpassthroughprioritysemantic_textinference_idtoken_countanalyzer