You can not do exactly what you are asking, but you can get half of it. I am
not sure it is a "best practice" but what I do is:
1) Create another property called stringNameSearch, then when saving an
entity I set that property equal to "marty" (ie stringName.lower()).
2) my filters then look something like: filter('stringNameSearch >=',
'ma').filter('stringNameSearch <', 'ma'+'z').
This will basically get you to the same as LIKE(pattern%), you can not do a
full text search easily in the datastore (ie LIKE(%pattern%)).
Just do some searches for google app engine datastore full text search.
There are a lot of discussions on this topic.
Robert
On Fri, Sep 11, 2009 at 1:35 PM, Marty <[email protected]> wrote:
>
> I want to query a String member and ignore the case.
>
> so I want to find an object where stringName=="Marty"
> and the pattern is : some_pattern== "RT"
>
> convert stringName to upperCase
> convert some_pattern to upperCase
> then
> select * where stringName LIKE (%some_pattern%%)
>
> what does the setFilter look like on that?
>
> Thanks
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---