[SERVER-736] Support for XPath like queries Created: 11/Mar/10 Updated: 09/Apr/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Index Maintenance, JavaScript, Performance, Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | mongonix | Assignee: | Backlog - Query Optimization |
| Resolution: | Unresolved | Votes: | 21 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| Assigned Teams: |
Query Optimization
|
||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
It would be very nice to be able to express XPath-like queries with MongoDB. For example, let's say there is a JSON document that contains a certain subtree, but it is not known where it is inside the JSON In the XML world, one could use XPath and write something like this to }} And, BTW, it would be really cool if generic XPath queries could be (BTW, many XML databases do actually support XPath natively. They even opimize their indexing and storage backends for effective XPath queries evaluation) Is something like this planned for the future releases? How difficult would it be to implement something like this? Would it require additional, more detailed indexing for effective implementation? Of course, it is easy to provide support at the syntactic level using whatever syntax (jQuery-like, XPath like, etc) - there are enough libraries for that. But implementing such queries effectively would eventually require new kinds of (additional) indexing, unless you want to iterate over all entries and check each one for the required sub- trees. Proposal by Eliot: An easy first idea might just be wildcard operator a.*b Please see this mailing list thread for more information: |
| Comments |
| Comment by Geoffrey GREBERT [ 09/Apr/23 ] |
|
up please ! |
| Comment by ONIXEDIT [ 21/Aug/18 ] |
|
Hi,
What is the status of this request? It is classified as "Major" but still opened since 2010!
Thank you |
| Comment by Andrey Kobyshev [ 06/Dec/12 ] |
| Comment by Andrey Kobyshev [ 06/Dec/12 ] |
|
Yes, JsonPath functionality is sorely missed in the pyMongo driver... |