阅读背景:

Java Spring数据mongodb如何使用通配符?

来源:互联网 

I have a field in my mongodb called "name". I am using annotations in spring data to support querying. My question is, is there a way to support wildcard? i.e. If I have values for "name" called "Robert", "Roberto" "Ramano", I could support queries that allow me to pass say "R" to a function, and it will match on everything that starts with R? Right now I have to basically do an "exact spelling" of Robert, or any one of those names to get an exact match.I have a field in my mongodb called "name". I a




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: