spring-data-mongodb icon indicating copy to clipboard operation
spring-data-mongodb copied to clipboard

Allow to create case insensitive indexes via annotations

Open jakubpradzynski opened this issue 2 years ago • 2 comments

Hi,

the option for creating case insensitive index in MongoDB is available by setting collation. Specifically locale and strength values. It's described in MongoDB documentation.

Currently, annotations @Indexed and @CompoundIndex don't have collation in parameters to set. Such option is available for @Document annotation but this will set value for all indexes in collection.

jakubpradzynski avatar Jul 28 '22 21:07 jakubpradzynski

Thank you for the PR @jakubpradzynski !

christophstrobl avatar Aug 01 '22 10:08 christophstrobl

Hi, actually I created the PR and referenced this ticket because it would also solve this one 😁. I would be happy for feedback on it if you find the time to review it @christophstrobl .

StefanTirea avatar Aug 05 '22 18:08 StefanTirea