You'll probably want to read through the Java Docs for Appengine. Check here:
http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Class_and_Field_Annotations <http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Class_and_Field_Annotations>It mentions that a Persistent Field can be "a Collection ... or an array of values of a core datastore type" in that section. Granted, I avoid Java like the plague so... you'll have to figure this one out on your own. But, seems like you'd just make your searchable_description field an array of strings. 2010/9/8 Yury Sintyaev <[email protected]> > Thanks for answer, but that is for python. And what about java? > > On 8 сен, 20:06, Eli Jones <[email protected]> wrote: > > One cheap workaround is to turn the description String property into a > > StringListProperty where each word is one of the list members. > > > > http://code.google.com/appengine/docs/python/datastore/typesandproper... > > > > <http://code.google.com/appengine/docs/python/datastore/typesandproper.. > .>Thus, > > you could search for individual words in a description like so: > > > > Select * from MyClass where description = 'searchWord' > > > > And, any entity in MyClass that had the word 'searchWord' in its > description > > would get returned. > > > > On Wed, Sep 8, 2010 at 1:42 AM, Yury Sintyaev <[email protected]> > wrote: > > > GQL has no "like" condition. I want to implement search function in my > > > site. There is class MyClass. In MyClass there is field "String > > > description". This is text(500 chars). I want to make the query: > > > select * from MyClass where description like '%searchValue%'. > > > What is workarround? > > > Thanks for answer, > > > Yury. > > > > > -- > > > 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]<google-appengine%[email protected]> > <google-appengine%[email protected]<google-appengine%[email protected]> > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/google-appengine?hl=en. > > -- > 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]<google-appengine%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > > -- 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.
