[SERVER-36239] MatchExpression parser query rule Created: 23/Jul/18  Updated: 29/Oct/23  Resolved: 24/Jul/18

Status: Closed
Project: Core Server
Component/s: Querying
Affects Version/s: 3.6.6, 4.0.0
Fix Version/s: 3.6.7, 4.0.2, 4.1.2

Type: Bug Priority: Major - P3
Reporter: Davi Ottenheimer Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Documented
is documented by DOCS-11920 Docs for SERVER-36239: MatchExpressio... Closed
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2018-07-30
Participants:
Linked BF Score: 2

 Comments   
Comment by Githook User [ 06/Aug/18 ]

Author:

{'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com', 'username': 'nzolnierzmdb'}

Message: SERVER-36239: MatchExpression parser should reject a $text query that is not operating on the top level document

(cherry picked from commit fbd991a76e141a2744b18f3f9954f345136bba6b)
Branch: v4.0
https://github.com/mongodb/mongo/commit/19ef9a7747f954baef5372367199730ca0fa643b

Comment by Githook User [ 30/Jul/18 ]

Author:

{'username': 'nzolnierzmdb', 'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com'}

Message: SERVER-36239: MatchExpression parser should reject a $text query that is not operating on the top level document

(cherry picked from commit fbd991a76e141a2744b18f3f9954f345136bba6b)
Branch: v3.6
https://github.com/mongodb/mongo/commit/b855ed29f63bec4ce7b2a5364647fb3657778b47

Comment by Nicholas Zolnierz [ 24/Jul/18 ]

kyle.suarez good point, though I think it'd be sufficient to say that $text must be at the top level of a query as opposed to listing the path-accepting expressions that it won't work with.

Comment by Kyle Suarez [ 24/Jul/18 ]

Marking documentation changes as needed because neither the $text nor the $elemMatch pages mention that $text is disallowed in $elemMatch.

Comment by Githook User [ 24/Jul/18 ]

Author:

{'username': 'nzolnierzmdb', 'name': 'Nick Zolnierz', 'email': 'nicholas.zolnierz@mongodb.com'}

Message: SERVER-36239: MatchExpression parser should reject a $text query that is not operating on the top level document
Branch: master
https://github.com/mongodb/mongo/commit/fbd991a76e141a2744b18f3f9954f345136bba6b

Generated at Thu Feb 08 04:42:30 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.