How I fixed my Elasticsearch index mapping

preview_player
Показать описание
I created an Elasticsearch/OpenSearch index mapping that couldn't answer questions I asked it, so I built two alternative mappings for the same data.

One is a very wide, dynamic, and update-heavy mapping that's easy to query. The other is strict and tidy, but uses nested documents. There are pros and cons to each, and I discuss those.

Three costumes for the same data!
Рекомендации по теме
Комментарии
Автор

Great video. I've been using ES since pre-1.0 beta so I have too many mapping horror stories to even begin but yeah, changing mappings can be as painful as updating a data type in a large database.
I never found a good use case for nested docs. In many cases, it was easier to just make a new index with the new mapping.
I always, always use index aliases to minimize reporting downtime. Took me a few late nights to finally do that.
Cheers.

kickinit
Автор

Great video! I am sorry to ask an off-topic question, but here it goes: can anyone recommend videos or texts about upgrading ES from 7.9 to 8.1 with "minimal trouble"? Thanks.

wendel.s.l