Inclusion of match_field
in enriched documents
#49251
Labels
:Data Management/Ingest Node
Execution or management of Ingest Pipelines including GeoIP
Team:Data Management
Meta label for data/management team
Elasticsearch version: 7.5.0
An enrich policy includes both a
match_field
(to match documents against for potential enrichment) and a list ofenrich_fields
to be appended to any matching documents. Currently, thematch_field
is ALSO appended to enriched docs, even if it doesn't appear inenrich_fields
.This may not be desirable in all cases, e.g. for the
geo_match
processor, you may be matching points against very detailed shapes like administrative area polygons, and probably don't need to copy the entire boundary of a country for every street address inside of it.Is it worth considering an option for this behavior or rethinking the default (I was surprised to find the
match_field
included even though I didn't ask for it, but I assume it is intentional behavior)? As it stands today, @talevy points out that you can always add aremove
processor to get rid of the copied shape field.(Also see #49208 to clarify existing behavior.)
The text was updated successfully, but these errors were encountered: