Consolidate index version checks #65399
Labels
:Core/Infra/Settings
Settings infrastructure and APIs
Meta
>refactoring
:Search Foundations/Mapping
Index mappings, including merging and defining field types
Team:Core/Infra
Meta label for core/infra team
Team:Search Foundations
Meta label for the Search Foundations team in Elasticsearch
In order maintain compatibility with older indices, we sometimes need to check the index version and take special action. These index version checks happen in a variety of places and ways, making it hard to understand what logic depends on the index version. It also means that compatibility logic is scattered throughout various components, which hurts code quality.
It would be good to consolidate index version checks as much as possible. Some ideas:
MapperService
.The text was updated successfully, but these errors were encountered: