Hi All,
- kind: model
properties:
- name: a1
- name: a2
- name: a3
- name: a4
- name: c1
- name: c2
- name: c3
- name: c4
- name: c5
direction: desc
class model(db.Model):
c1 = db.StringProperty()
c2 = db.StringProperty()
c3 = db.StringProperty()
c4 = db.StringProperty()
c5 = db.StringProperty()
a1 = db.StringProperty()
a2 = db.StringProperty()
a3 = db.StringProperty()
a4 = db.StringProperty()
def some(request):
q = model.all()
q.filter('a1 =', request.param_a1)
q.filter('a2 =', request.param_a2)
q.filter('a3 =', request.param_a3)
q.filter('a4 =', request.param_a4)
q.filter('c1 =', request.param_c1)
q.filter('c2 =', request.param_c2)
q.filter('c3 =', request.param_c3)
q.filter('c4 =', request.param_c4)
q.filter('c5 =', request.param_c5)
entities = q.fetch(10)
This is ok for all request params. But sometimes the "request.param_a2" is
not supply by request.
Do I need to add a new index in inexe.yaml ?
I want to use one index rule for this model. Is any way like q.filter('a2
=', r'.*') for disable this filter without add a new index?
Thanks in advance for any suggestion.
Best Regards
Tom Wu
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---