Hi,
I am using SearchableModel and trying to do a not equals "!=" filter.
Is the not equals filter supported in GAE 1.2.1?
I tried to run a search and filter the product ids that the user is
not interested in,
but it does not seem to work... any ideas? Is there a workaround?
query = Product.all().search(searchtext)
for i, v in enumerate(user.notinterestedlist):
query.filter("pid !=", int(v))
results = query.fetch(50, offset=offset)
I don't want to fetch 100, then filter to get the first 50 because I
don't know how large the filter list is
Plus it makes it harder for me page my product list.
Thanks in advance
John
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---