问题
Im using:
- spring-boot-starter-parent 1.5.1.RELEASE
- spring-data-mongodb 1.10.0.RELEASE
- MongoDB 3.4
I need to use and aggregation like:
db.getCollection('person').aggregate([{$project:{firstName:1,lastName:1,sortName:{$concat:["$firstName"," ","$lastName"]}}},{$sort:{sortName:1}}],{collation:{locale:"es",strength:2}})
But I don't find how to use collation with spring-data-mongodb? Does anyone knows if Spring Data MongoDB actually supports collation new MongoDB 3.4 feature? If not, does are plans to support it soon? I could not find anything about it at Spring Data MongoDB.
来源:https://stackoverflow.com/questions/42165412/does-spring-data-mongodb-supports-mongodb-3-4-collation-feature