it works..thank you On Wed, Dec 3, 2008 at 11:27 AM, Alexander Kojevnikov < [EMAIL PROTECTED]> wrote:
> > You need to add the index to your index.yaml file (if it's not already > added by the dev_appserver.py), update the indices with appcfg.py and > wait until the index is built. > > See this page for detailed instructions of the above: > http://code.google.com/appengine/docs/datastore/queriesandindexes.html > > On Dec 3, 1:53 pm, lookon <[EMAIL PROTECTED]> wrote: > > my code is > > > > query = db.Query(Image) > > query = Image.all() > > query.filter("owner =",user) > > query.order('-date') > > images = query.fetch(limit=20) > > > > but the server tells me that: > > NeedIndexError: no matching index found. > > This query needs this index: > > - kind: Image > > properties: > > - name: owner > > - name: date > > direction: desc > > > > when I use > > > > query = db.Query(Image) > > query = Image.all() > > query.order('-date') > > images = query.fetch(limit=20) > > > > or > > > > query = db.Query(Image) > > query = Image.all() > > query.filter("owner =",user) > > images = query.fetch(limit=20) > > > > it's ok.. > > > > anyone can help me ? thanks > > > -- 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 -~----------~----~----~----~------~----~------~--~---