Per https://github.com/spring-projects/spring-data-mongodb/issues/3049 the automatic creation of indexes in Spring Data MongoDb is now deprecated and disabled by default. However, we would like to retain the @Indexed annotations in the code for documentation purposes only.
If we were to skip removing all the @Indexed and @CompoundIndexes annotations from our @Document-annotated classes (I.e. just leave them), meanwhile allowing the default disabled automatic index creation behavior (or explicitly setting spring.data.mongodb.auto-index-creation = false) would this have the same effect as removing all the @Indexed and @CompoundIndexes annotations from the code entirely?
I'm concerned that leaving those annotations in the code might continue to have side affects and/or cause errors unrelated to automatic index creation. Or are these annotations exclusively to support automatic index creation?