elastic/elasticsearch
Dynamic mappings fail when a single document generates inconsistent mapping updates
开放
#15,377 创建于 2015年12月10日
:Search Foundations/Mapping>docsTeam:DocsTeam:Search Foundationshelp wanted
仓库指标
- 星标
- (76,700 个星标)
- PR 合并指标
- (平均合并 2天) (30 天内合并 1,000 个 PR)
描述
For instance indexing the following document would fail if the foo.bar field is not mapped explicitly:
{
"foo": [
{
"bar": "baz"
},
{
"bar": 42
}
]
}
The reason is that mapping updates for the 2 sub documents are generated independently (one triggers the creation of a string field and the other one of a long field) but they can't be reconciliated in order to generate the mapping update that will be sent to the master node.
Bug report courtesy of Benjamin Gathmann at https://discuss.elastic.co/t/coerce-long-to-double-not-working/36882.