python 2.7 - Google App Engine error: NeedIndexError: no matching index found -


i'm having trouble google's app engine indexes. when running app via googleappenginelauncher, app working fine. when deploying app, following error:

needindexerror: no matching index found. suggested index query is: - kind: bar   ancestor: yes   properties:   - name: rating     direction: desc 

the error generated after line of code:

 bars = bar_query.fetch(10) 

before above line of code, reads:

bar_query = bar.query(ancestor=guestbook_key(guestbook_name)).order(-bar.rating) 

my index.yaml file contains exact "suggested" index below # autogenerated:

- kind: bar   ancestor: yes   properties:   - name: rating     direction: desc 

am maybe missing something? removed index.yaml file , deployed app again (via command-line) , 1 less file uploaded - index.yaml file there.

everything working fine locally. i'm working on latest mac osx. command used deployment was:

appcfg.py -a app-name --oauth2 update app 

the datastore implemented loosely based on guestbook tutorial app.

any appreciated.

edit:

my ndb.model defined follow:

class bar(ndb.model):     content = ndb.stringproperty(indexed=false)     lat = ndb.floatproperty(indexed=false)     lon = ndb.floatproperty(indexed=false)     rating = ndb.integerproperty(indexed=true)     url = ndb.textproperty(indexed=false) 

check https://appengine.google.com/datastore/indexes see if index present , status set "serving". it's possible index still being built.

the development environment emulates production environment. not have indexes in datastore sense.


Comments

Popular posts from this blog

SQL php on different pages to Insert (mysqli) -

How to combine associative arrays in bash? -

c++ - No viable overloaded operator for references a map -