Elasticsearch should raise a mapper exception when reserved "mapping fields" are used inside "properties" #10456
Labels
>bug
help wanted
adoptme
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
Unfortunately it is possible to use "top-level"/meta mapping properties, such as
_source
,_all
, ... inside the"properties": {}
portion of a mapping, without complaints. This allows for user errors that are easily missed.Using the following mapping
will lead to:
Note, how the
_all
-"Field-Mapping" is just silently ignored.Please see https://gist.github.com/konradkonrad/16220520eb9bacc1f6e6 for a complete reproduction.
The text was updated successfully, but these errors were encountered: