As per the GQL documentation : (
http://code.google.com/appengine/docs/datastore/queriesandindexes.html#Defining_Indexes_With_index_yaml
)

"Query filters do not have an explicit way to match just part of a string
value, but you can fake a prefix match using inequality filters:

db.GqlQuery("SELECT * FROM MyModel WHERE prop >= :1 AND prop < :2", "abc",
u"abc" + u"\ufffd")

This matches every MyModel entity with a string property prop that begins
with the characters abc. The unicode string u"\ufffd" represents the largest
possible Unicode character. When the property values are sorted in an index,
the values that fall in this range are all of the values that begin with the
given prefix."

Is this type of prefix match supported for StringListProperty as well? I
tried the above inequality filters for an attribute having
StringListProperty, however it did not give correct results for all queries.
Is there any other way to apply prefix filter on  StringListProperty
attributes?

Thanks,
Jyoti

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to