-
Mar 29th, 2012, 12:55 AM
#1
Critiria.not() Critiria.regex() not working together
Hi,
I wanted to query something like get results that does not satisfy this regex (non case sensitive).
But what is see as part of mongodb documentation is:
$not is not supported for regular expressions specified using the {$regex: ...} syntax. When using $not, all regular expressions should be passed using the native BSON type (e.g. {"$not": re.compile("acme.*corp")} in PyMongo)
I get a similar message when i use not() and regex() together on spring Criteria API .
As suggestion how could i achieve the same.
Regards,
Suraj
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules