[SERVER-2247] geo query with regex against an array returns no results Created: 17/Dec/10 Updated: 12/Jul/16 Resolved: 06/Apr/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Geo |
| Affects Version/s: | 1.6.5 |
| Fix Version/s: | 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Elisha Cook | Assignee: | Greg Studer |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Operating System: | Linux |
| Participants: |
| Description |
|
Here's an example using pymongo. I'm able to duplicate with different types of geo queries: import re coll = Connection().test.georegexlistfail q_regex = {'words': re.compile('^f')}q_geo = {'point': {'$near':[1,1]}} def run(q): run(q_regex) """ Query: {'words': <_sre.SRE_Pattern object at 0x7f9fc21b63b0>}Result: {u'_id': ObjectId('4d0be668b45b5d4d2d000000'), u'words': [u'foo', u'bar'], u'point': [1, 1]}Query: {'point': {'$near': [1, 1]}} Query: {'words': <_sre.SRE_Pattern object at 0x7f9fc21b63b0>, 'point': {'$near': [1, 1]}} Thanks! |
| Comments |
| Comment by auto [ 06/Apr/11 ] |
|
Author: {u'login': u'gregstuder', u'name': u'gregs', u'email': u'greg@10gen.com'}Message: look inside indexed arrays for regexes fix for |
| Comment by Greg Studer [ 06/Apr/11 ] |
|
Reproduces in 1.9 |