Spring Data MongoDB 是否支持 MongoDB 3.4 整理功能? [英] Does Spring Data MongoDB supports MongoDB 3.4 collation feature?

查看:54
本文介绍了Spring Data MongoDB 是否支持 MongoDB 3.4 整理功能?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用:

  • spring-boot-starter-parent 1.5.1.RELEASE
  • spring-data-mongodb 1.10.0.RELEASE
  • MongoDB 3.4

我需要使用和聚合:

db.getCollection('person').aggregate([{$project:{firstName:1,lastName:1,sortName:{$concat:["$firstName"," ","$lastName"]}}},{$sort:{sortName:1}}],{collation:{locale:"es",strength:2}})

但是我没有找到如何在 spring-data-mongodb 中使用排序规则?有谁知道 Spring Data MongoDB 是否真的支持整理新的 MongoDB 3.4 功能?如果没有,是否计划很快支持它?我在 Spring Data MongoDB 上找不到任何相关信息.

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.

推荐答案

我尝试过这个并且使用 mondoDB 4.2 版本

I am tried this and working with mondoDB 4.2 version

这篇关于Spring Data MongoDB 是否支持 MongoDB 3.4 整理功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆