[appengine-java] Re: Workaround for like keyword in JDOQL

2010-02-12 Thread datanucleus
> Since there is no like keyword in JDOQL

JDOQL obviously has
{StringField}.matches()
since it follows Java

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Workaround for like keyword in JDOQL

2010-02-12 Thread Piyush
Thanks to all.

On Feb 12, 6:27 am, yjun hu  wrote:
> you can try compass to search
>
> On Fri, Feb 12, 2010 at 7:03 AM, John Patterson wrote:
>
>
>
> > The usual approach to complex queries in GAE is to process your data before
> > you need to query it.  So in this case for each person create an "index
> > entity" which simply contains a list of partial names e.g. "Pliyush",
> > "iyush", "yush",  "ush"
>
> > Then do a keys-only range query for the name part e.g. "iyu" (look into how
> > to do range queries).  Then take the result key's parent  and look up the
> > Person entity.
>
> > On 11 Feb 2010, at 18:26, Piyush wrote:
>
> >  Hi All,
>
> >> I am developing a resource allocation application in GAE with Java.
>
> >> Since there is no like keyword in JDOQL, I am unable to do search in
> >> database based on a keyword. For example, I want to list all the
> >> employees who have 'ash' word in their name.
>
> >> I have already wasted 3 days due to this problem. So please suggest me
> >> some workaround to achieve above this goal.
>
> >> Thanks in advance.
>
> >> Regards,
> >> Piyush Jain
>
> >> --
> >> You received this message because you are subscribed to the Google Groups
> >> "Google App Engine for Java" group.
> >> To post to this group, send email to
> >> google-appengine-j...@googlegroups.com.
> >> To unsubscribe from this group, send email to
> >> google-appengine-java+unsubscr...@googlegroups.com
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> dream or truth

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Workaround for like keyword in JDOQL

2010-02-11 Thread Brian
Get a list of (key, name) for your object in question

Do a foreach loop and check each name in java  ( if
blah.indexOf("ash") >= 0 )
if it matches your filter, download the full person via the key and
add him to a list to return

On Feb 11, 5:26 am, Piyush  wrote:
> Hi All,
>
> I am developing a resource allocation application in GAE with Java.
>
> Since there is no like keyword in JDOQL, I am unable to do search in
> database based on a keyword. For example, I want to list all the
> employees who have 'ash' word in their name.
>
> I have already wasted 3 days due to this problem. So please suggest me
> some workaround to achieve above this goal.
>
> Thanks in advance.
>
> Regards,
> Piyush Jain

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.