android - ParseQuery with whereNear() ignores others conditions -


the query below utterly ignoring second condition (the filter, string field).

but when wherenear() condition commented, filter applied.

does wherenear() condition cause ignore others conditions? if yes, correct approach in case?

parsequery<parseobject> query = parsequery.getquery("post"); query.wherenear("location", new parsegeopoint(latitude, longitude)); query.whereequalto("filter", filter); query.orderbydescending("createdat"); list<parseobject> objects = query.find() 

from parse documentation,

if additional orderbyascending()/orderbydescending() constraint applied wherenear(), take precedence on distance ordering.

so, wherenear() won't override orderbydescending(). other way around. also,

using wherenear() constraint limit results within 100 miles.

if there no points nearby given point within 100 miles satisfy second filter. think that's why getting unexpected results.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -