Sorry, ignore me :) 2009/8/21 Scott Ellis <[email protected]>
> This cookbook recipe explains the problem, in the context of date ranges: > > > http://www.google.com.au/url?sa=t&source=web&ct=res&cd=4&url=http%3A%2F%2Fappengine-cookbook.appspot.com%2Frecipe%2Fhow-to-query-by-date-range&ei=DnuOStn7EY__kAWv3s27Cg&usg=AFQjCNGKYfrrm9dYm7L43cZw8hvwK9R2mQ&sig2=xuGt41_VuFei-jvrp1uVBw > > I'm not sure if the comments are valid. > > 2009/8/21 iceanfire <[email protected]> > > >> I'm getting the following error: >> >> "BadArgumentError: First ordering property must be the same as >> inequality filter property, if specified for this query; received >> distance, expected cost" >> >> when i run the following code: >> >> search_query.filter("cost >", min_price) >> search_query.filter("cost <", max_price) >> search_query.order("distance") >> >> >> Did anyone know about this? Its not in the docs (atleast from what >> i've read)...please tell me there's a way around this weird >> restriction! I can't really think of a way to restructure my app cause >> the inequality filter is basically a necessity at this point & i'd >> love to be able to sort my results by something other than cost... >> >> >> >> > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
