[SERVER-15727] two-dimension Array $elemMatch bug Created: 20/Oct/14 Updated: 10/Dec/14 Resolved: 29/Oct/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.6.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | rendong | Assignee: | David Storch |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Operating System: | ALL | ||||||||||||||||
| Steps To Reproduce: |
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
like this query
at 2.4.8 version can work ok,at 2.6.5 find nothing,not test other version |
| Comments |
| Comment by David Storch [ 29/Oct/14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi rendong, Thanks for helping us look into this by providing additional information about this issue. After review, we have identified this as expected behavior. The behavior change in matching of two-dimensional arrays was due to buggy behavior in 2.4.x versions that was fixed in 2.6.0. It is documented in the "Compatibility Changes" in the 2.6 Release Notes. Furthermore, this ticket is a duplicate of I'm going to close this ticket as a duplicate, but feel free to reach out with any further questions or concerns. Best, | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by rendong [ 28/Oct/14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
thank you for apply,you con insert this document into collection.
and query like this
on 2.4.8 version look this document,at 2.6.5 find nothing. particular reason why idPath and namePath are arrays of arrays, like save a book document ,the book can belongto some catalog,not belong to one category,and in form this input can repeat input.My project is diy form app,the user can drap html input、select、radio etc building a form,and any input、select and radio can put in a group,or repeat,or group repeat。so the page form contains many html input to input the book catalog,so i design the save schema like arrays of arrays。 I can't upload, send me instructions for a private upload,I and uplload my app preview | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramon Fernandez Marina [ 27/Oct/14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Hi rendong, we're still looking into this. In the meantime you may want to try a query like {"fieldsValue.namePath" : {$in : ["some word"]}} and see if that addresses your needs. Also, is there any particular reason why idPath and namePath are arrays of arrays? It could be useful if you could send us a dataset and the detailed query you're using so we can investigate if there's an edge case here, specially on an schema containing arrays of arrays. Please let me know if you can share a sample dataset, and if you prefer not to upload it to the ticket I can send you instructions for a private upload. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by rendong [ 25/Oct/14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
can you confirmed this bug? | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by rendong [ 22/Oct/14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by J Rassi [ 20/Oct/14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Could you please post the results of running this query on 2.4.8? I'd like to see what results you're expecting. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Comment by rendong [ 20/Oct/14 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
why at 2.4.8 work ok,but at 2.6.5 not,if remove this feature in the future version,please tell me, I change my project ,thank you very much! |