Many duplicate dynamic mappers are created when indexing arrays of unknown fields. #117593
Labels
>bug
priority:normal
A label for assessing bug priority to be used by ES engineers
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
In
org.elasticsearch.index.mapper.DocumentParserContext#addDynamicMapper
we have a TODO that asks to optimize the way we dynamically map object arrays:We should address this TODO. The current behavior of potentially creating a bunch of duplicate mapper instances causes a massive spike in heap use for duplicate mapper instances if the first document containing a new (sub-)field via an array of objects is mapped.
The text was updated successfully, but these errors were encountered: