[google-appengine] Re: How to select a single word in stringproperty?

2009-04-18 Thread 风笑雪
You can read this document: http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html Give you a sample code: class M(db.Model): s = db.StringProperty() class H(webapp.RequestHandler): def get(self): M(s='aaa bbb ccc ddd').put() M(s='eee ddd ccc fff').put() M(

[google-appengine] Re: How to select a single word in stringproperty?

2009-04-18 Thread saintthor
谢谢回复。 我问的是字符串属性部分匹配的问题。按你的方法,只能匹配开头。需要匹配中间的时候,比如在前例里,查找含有 ccc 的对象,该怎么做? HOW to select the entity with "ccc" in strprop then? On 4月19日, 上午12时08分, 风笑雪 wrote: > You can read this > document:http://code.google.com/appengine/docs/python/datastore/queriesandinde... > > Give you a sample code: > >

[google-appengine] Re: How to select a single word in stringproperty?

2009-04-19 Thread 风笑雪
没办法,GAE不支持全文检索 2009/4/19 saintthor > > 谢谢回复。 > > 我问的是字符串属性部分匹配的问题。按你的方法,只能匹配开头。需要匹配中间的时候,比如在前例里,查找含有 ccc 的对象,该怎么做? > > > HOW to select the entity with "ccc" in strprop then? > > On 4月19日, 上午12时08分, 风笑雪 wrote: > > You can read this document: > http://code.google.com/appengine/docs/python/datasto