Wow.... I'm discovering the pain of inequality searches. If I have ten fields and want to search any inequality on just one of them, index.yaml needs to include every permutation of field names?
On Mar 4, 9:23 am, Tom <thomasfmc...@gmail.com> wrote: > I am running into my first NeedIndexError after uploading to the live > server. > > class Wine(db.Model): > bottlename = db.StringProperty() > bottlerating = db.FloatProperty(default=0.0) > > query = db.Query(Wine) > query.filter('bottlename =', 'CAVIT') > query.filter('bottlerating >=', 2.0) > query.count() > > I get the NeedIndexError on the count() call. Are entries needed in > index.yaml for this? What should the entry be? My queries always work > locally and even changing to db.GqlQuery() doesn't write anything into > the index.yaml as autogenerated. > > Any help for me? --~--~---------~--~----~------------~-------~--~----~ 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 google-appengine+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en -~----------~----~----~----~------~----~------~--~---