from google.appengine.ext import db from google.appengine.ext import search class Article(search.SearchableModel): title = db.TextProperty() publishDate = db.DateTimeProperty(auto_now_add=True) text = db.TextProperty() # should NOT be returned article = Article(text ='''This is the totally secret article text which talks about sausages and cheese in the middle of itself.''') article.title = "Fine cuisine" article.save() # should BE returned
article = Article() article.title = "What I feed my dogs" article.text = '''This is the totally secret article text which talks about sausages and cheese in the middle of itself.''' article.save() print "Results" query = Article.all().search("sausages cheese dogs").order("-publishDate") for a in query: print "%s | %s" % (a.title, a.publishDate) print "Done printing" 2008/12/5, kang <[EMAIL PROTECTED]>: > Thanks...so there is no good solution for this problem now? I haven't seen > it in the roadmap... > > > On Fri, Dec 5, 2008 at 1:27 AM, tigrillo > <[EMAIL PROTECTED]> wrote: > > > > Hello: maybe it can help: > > > > > http://code.google.com/p/googleappengine/issues/detail?id=217 > > > > I use this as a temporary option while Search become better > > > > > > On 1 dic, 21:18, kang <[EMAIL PROTECTED]> wrote: > > > anyone have experience in SearchableModel? > > > > > > > > > > > > > > On Mon, Dec 1, 2008 at 3:10 PM, kang <[EMAIL PROTECTED]> wrote: > > > > anther question...I have some foreign language stored in the > > > > datastore...but i can not search them...what can I do ? > > > > > > > On Mon, Dec 1, 2008 at 12:24 PM, Alexander Kojevnikov < > > > > > > [EMAIL PROTECTED]> wrote: > > > > > > >> > Thank you for your reply is there any example code about full text > > > >> > search with gae? > > > > > > >> The source code of the SearchableModel is well documented and > contains > > > >> examples of how to use it: > > > > > > > >>http://code.google.com/p/googleappengine/source/browse/trunk/google/a... > > > > > > > > >> Also, google for "SearchableModel", there are quite a few blog posts > > > >> on the topic. > > > > > > > -- > > > > > > Stay hungry,Stay foolish. > > > > > > -- > > > Stay hungry,Stay foolish. > > > > > > > > > > > > > > -- > Stay hungry,Stay foolish. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to google-appengine@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---