[SERVER-2832] bound query problem within+box Created: 25/Mar/11  Updated: 12/Jul/16  Resolved: 25/Mar/11

Status: Closed
Project: Core Server
Component/s: Geo, Index Maintenance, Querying
Affects Version/s: 1.6.5, 1.8.0
Fix Version/s: 1.9.0

Type: Bug Priority: Major - P3
Reporter: jordi domenech Assignee: Greg Studer
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

CentOS release 5.5
64bits
kernel 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST


Attachments: File pastie-1710646.js    
Operating System: Linux
Participants:

 Description   

It's easy to see the problem with my example:

I have a geospatial index for the collection
'users'. From a Google Map (Javascript V3 API), I make calls to a node
js instance which does the MongoDB queries: who are within the box
limited by 2 lat,lng pairs (south west, north east)? The problem:
sometimes it returns the wrong number of users and it's so weird
because it happens moving the map JUST a little bit. No sense.

This is a js running the example:
http://pastie.org/1710646

It happens both w/ node native driver and shell.

Thanks in advance



 Comments   
Comment by auto [ 25/Mar/11 ]

Author:

{u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}

Message: needed 2 points for correct box expansion SERVER-2832

Cannot start box expansion with min=max unless exact start point is in index.
https://github.com/mongodb/mongo/commit/aeb26c953ea34d2f9b8e547031d56da631aa454a

Generated at Thu Feb 08 03:01:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.