[SERVER-13505] Query parser should reject $text predicate in $elemMatch Created: 07/Apr/14 Updated: 10/Dec/14 Resolved: 08/Apr/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | 2.6.0-rc3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | J Rassi | Assignee: | Unassigned |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | 26qa | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
The query parser should disallow use of $text inside $elemMatch. There is no functionality to match a $text predicate against a subdocument; $text predicates apply to the root of a document only. Users receive the following cryptic error message when running an $elemMatch query that contains $text:
|
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 08/Apr/14 ] |
|
Not a syntax issue, a semantic issue. |