4 ms·
In 2.x, all fields must adhere to the same data type or you will get a failure [1]. To quote: Fields with the same name, in the same index, in different typ
by craigching 11y ago
In 2.x, all fields must adhere to the same data type or you will get a failure [1]. To quote:
Fields with the same name, in the same index, in different types,
must have the same mapping
So hopefully this isn't an issue anymore! I do strongly suggest (and we've done this from the beginning) that no one rely on elasticsearch's auto mapping and that you should explicitly map your fields.
[1] -- https://www.elastic.co/guide/en/elasticsearch/reference/current/breaking_20_mapping_changes.html https://www.elastic.co/guide/en/elasticsearch/reference/curr...
- vaidik 11y agoYes you are right. In fact, a simple work around, before Elasticsearch coming out with this feature in their 2.x releases, was to review mappings and what goes in Elasticsearch. And we got careless about that and shot ourselves in the foot. We learned it the hard way.