[CSHARP-950] Misplaced $maxDistance inside of $near Created: 11/Apr/14  Updated: 02/Apr/15  Resolved: 23/Apr/14

Status: Closed
Project: C# Driver
Component/s: API
Affects Version/s: 1.9
Fix Version/s: 1.9.1

Type: Bug Priority: Critical - P2
Reporter: Marcelo Adrian Oliveto Assignee: Robert Stam
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

windows 8, windows 2008, mongodb 2.6.0


Issue Links:
Depends
is depended on by DRIVERS-147 $maxDistance changes in 2.6 for GeoJSON Closed

 Description   

Misplaced $maxDistance inside of $near

see: http://docs.mongodb.org/master/release-notes/2.6-compatibility/#maxdistance-changes

In previous version, $maxDistance could be either inside or outside the $near document.
You must update any existing $near queries on GeoJSON data that currently have the $maxDistance outside the $near document

Example:

db.places.find( { loc : { $near :
                          { $geometry :
                            { type : "Point" ,
                              coordinates: [ 40 , 5 ] }
                            $maxDistance : 500
                          },
                        }
                } )



 Comments   
Comment by Marcelo Adrian Oliveto [ 13/May/14 ]

Hi Robert:

Might you know when it would release the version 1.9.1.
I look forward to trying it.
I'm hoping this patch migrate my system to version 2.6 of mongo.
I await news.

Thanks you so much.
Kind regards.

Comment by Robert Stam [ 03/May/14 ]

The current plan is to deploy 1.9.1 on May 6 or 7.

Comment by Marcelo Adrian Oliveto [ 03/May/14 ]

How i can get the fix for this issue?
When your will deploy the 1.9.1 version?

Regards

Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-950: Skip GeoJson integration tests when connected to older servers that don't support GeoJson.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/95909d46921fcfe8edd3d914e2fe60761c761302

Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-950: Added integration tests with the server.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/03ea08c44767b1193743d079ebe8b94f23021fba

Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-950: For GeoJson $near queries $maxDistance goes inside $near.
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/85ad153c151c99470c41cfa297ef121f471586ae

Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-950: Skip GeoJson integration tests when connected to older servers that don't support GeoJson.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/c3ac1e4b376a6ea455f1758b2fe08aee74471d46

Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-950: Added integration tests with the server.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/26f88b2e332e0cfb8be4936e407850ddc949cdec

Comment by Githook User [ 23/Apr/14 ]

Author:

{u'name': u'rstam', u'email': u'robert@10gen.com'}

Message: CSHARP-950: For GeoJson $near queries $maxDistance goes inside $near.
Branch: v1.x
https://github.com/mongodb/mongo-csharp-driver/commit/6a182f41a927172891ed423a8156d0ce7836ec85

Comment by Craig Wilson [ 11/Apr/14 ]

Thanks for the report. We'll get this scheduled in.

Generated at Wed Feb 07 21:38:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.