What Is The Best Filter To Query A Full Name Datastore Property Using Only The First Name?
I have this datastore model: class Person(db.Model): person_name = db.StringProperty(required = True) nacionality = db.StringProperty(required = True) marital_
Solution 1:
String filter works as it was comparing chars starting beginning of string. You can do something like this:
p.filter('person_name >=', searched_name)
p.filter('person_name <', searched_name + u'\ufffd')
Post a Comment for "What Is The Best Filter To Query A Full Name Datastore Property Using Only The First Name?"