Skip to content

Case insensitive equals #2443

Answered by evanchooly
VladimirGK asked this question in Q&A
Discussion options

You must be logged in to vote

You are not missing anything. What was happening with 1.6.1, is that Morphia would create a case-insensitive regex filter for you. This has hidden performance impacts and was dropped from 2.x for this and other reasons. To achieve the same thing in 2.0, you can use a regex filter directly or craft your indexes appropriately. For a broader discussion on the pros and cons of these options, check out this video which goes in to a fair bit of detail.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by VladimirGK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants