[SERVER-11535] Geo Query with $within and {$uniqueDocs:false} does not return matched documents multiple times. Created: 02/Nov/13 Updated: 10/Mar/14 Resolved: 06/Nov/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.5.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Robert Moore | Assignee: | Gianfranco Palumbo |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux. |
||
| Issue Links: |
|
|||||||||||||||||
| Backwards Compatibility: | Major Change | |||||||||||||||||
| Operating System: | ALL | |||||||||||||||||
| Steps To Reproduce: |
|
|||||||||||||||||
| Participants: | ||||||||||||||||||
| Description |
|
The semantics for 2.5.3 for a geo query using a '2d' index have changed when requesting that documents matching the region multiple times be returned multiple times. While |
| Comments |
| Comment by Gianfranco Palumbo [ 06/Nov/13 ] | |||||||||||
|
I've created and linked this | |||||||||||
| Comment by Robert Moore [ 06/Nov/13 ] | |||||||||||
|
Gianfranco, No need for a CS ticket. I will figure something out. I do think this should be documented in the release notes. Can we convert this ticket to a DOCS ticket to get those updated? Rob. | |||||||||||
| Comment by Gianfranco Palumbo [ 05/Nov/13 ] | |||||||||||
|
Hi Robert, UniqueDocs / UniqueLocs is going away in 2.6 - the semantics interfere badly with our general multikey index semantics. If you want multiple results, you can/should add multiple documents with different location fields. If this has a commercial impact please open a CS ticket and we can discuss it there in more detail. Regards, | |||||||||||
| Comment by Gianfranco Palumbo [ 04/Nov/13 ] | |||||||||||
|
While you can use $uniqueDocs only with the $geoWithin and $near operators, I believe you're right in your comment example: This is also not working as expected
| |||||||||||
| Comment by Robert Moore [ 02/Nov/13 ] | |||||||||||
|
This is also broken with the $geoWithin operator:
|