Different field type on couple shards

Hello. Somehow the type of one field in two shards is different of type at entire index and rest of the shards. As result some queries that rely on the field having specific type (number) are impacted. I know that it is impossible to change field type of the index/shard. What would be the right way of recreating the shard with fix field types and how to avoid this kind of problems in future?

Make sure you have a mapping template setup to apply to future indices, then use reindex on the incorrect data.

1 Like