Each change on an Oak index definition requires incrementing the version given in its name (for details refer to https://adapt.to/2024/presentations/adaptto-2024-indexing-in-aemaacs-behind-the-scenes.pdf). Otherwise the index is not working correctly (as it is not effective).
However detecting this condition requires holding some state, to see if there were some changes against the old index version.