Page 2 of 2

Advance search

Posted: Mon Dec 22, 2014 6:24 am
by A K R

the above code is case sensitive how can i make it case insensitive


Advance search

Posted: Mon Dec 22, 2014 6:24 am
by A K R

the above code is case sensitive how can i make it case insensitive


Advance search

Posted: Tue Dec 23, 2014 12:07 am
by Yurii Orishchuk

Hi AKR,

You can use regEx with options: "i" instead of direct value:

For example:

pre

{"westlothian": {"$regex": westlothian, "$options":"i"} },

/pre

Regard.


Advance search

Posted: Mon Oct 12, 2015 3:36 pm
by Tavonia Evans

how did you implement this? I need to do the same thing. Where do you add this in the where ?