Case insensitive queries supported?

191 views
Skip to first unread message

aaron saunders

unread,
Nov 29, 2012, 7:21:07 PM11/29/12
to node...@googlegroups.com
in mongodb I can do something like this

        data : {
            per_page : 100,
            //q:$.friendSearchBar.value,
            where : {
                "username" : {
                    "$regex" : $.addAFriendSearchBar.value,
                    "$options" : 'i'
                }
            }
        },

but it is not working in ACS?

Wei Kong

unread,
Nov 29, 2012, 7:23:40 PM11/29/12
to node...@googlegroups.com
The current mongodb case insensitive query doesn't use index. That's why we don't support it yet. Also we only support regex with a prefix matching. 

But for username , you can use users/search.json which supports case insensitive search

--
 
 

rier...@gmail.com

unread,
Mar 21, 2013, 9:57:40 AM3/21/13
to node...@googlegroups.com
Hi, is this still an issue? I am having the same problems as described here http://developer.appcelerator.com/question/149821/regex-search-on-a-custom-field-in-a-custom-object-acs#comment-164058
Reply all
Reply to author
Forward
0 new messages