I am trying to perform a bounding box query on a mongo db collection. The collection has been there for quite a while and I recently upgraded my driver from 1.3 to 1.6 to take advantage of some new features in Mongodb 2.2. The following query doesn't work:
var query = Query<TrafficUpdate>.WithinRectangle(x => x.Loc, lowerLeft.Lon, lowerLeft.Lat, upperRight.Lon, upperRight.Lat);
The above line doesnt work anymore though. Comes back with an error about "cannot find special index 2d for ....."
Any help would be appreciated.
Thanks.