I was working with SpringBoot 2.2.6, Elastic Search 5.6.13 and I decided to upgrade to SpringBoot 2.4.1, ElasticSearch 7.10. I'm storing complex documents in ES, with Enums as values and map keys. For all the serialization between Enums and strings (plus custom serializers) I'm using a custom entity mapper with a custom configured Jackson ObjectMapper.
In ES 4, the ElasticsearchEntityMapper interface has been removed. And all conversions should be implemented as converters. So I implemented converters for each enum, and it writes correctly into ES.
But they are not being read correctly. I found several problems but I would like to start with one specific. The map keys are not being translated back to Enums. They are being read as string.
I debugged the Spring Boot code looking for a specific interface I should be implementing but I couldn't find any.
Any ideas?
UPDATE 2022-01: Spring Boot 2.6.x seems to be working correctly, allowing to use enums as map keys...