[SERVER-71307] Aggregations with $search should fail if the resolved collation is non-simple Created: 14/Nov/22  Updated: 29/Oct/23  Resolved: 23/Feb/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 4.4.20, 5.0.16, 6.0.6

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

Issue Links:
Backports
Problem/Incident
causes SERVER-76098 Allow queries with $search and non-si... Closed
Related
Assigned Teams:
Query Optimization
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v6.0, v5.0, v4.4
Sprint: QO 2023-02-06, QO 2023-02-20, QO 2023-03-06
Participants:
Case:

 Description   

Mongot does not currently support collation-aware comparisons, and soon (PM-2803) will be able to perform sorting alongside the search query. Instead of silently ignoring the collation, we should instead fail the query. Note that the resolved collation can come from the aggregation request itself or as the collection default.



 Comments   
Comment by Githook User [ 23/Mar/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-71307 Collation must be simple for search and searchMeta
Branch: v4.4
https://github.com/mongodb/mongo/commit/cf8792ea4ff3b0ab50c7779b1a44680a4bb9ce56

Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-71307 Collation must be simple for search and searchMeta
Branch: v6.0
https://github.com/mongodb/mongo/commit/b09100802d625717715819eb6fd7a3b14879aa75

Comment by Githook User [ 22/Mar/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-71307 Collation must be simple for search and searchMeta
Branch: v5.0
https://github.com/mongodb/mongo/commit/40eae593bfb458304ce1c75e9ffb44d3b804d6b1

Comment by Githook User [ 23/Feb/23 ]

Author:

{'name': 'Militsa Sotirova', 'email': 'militsa.sotirova@mongodb.com', 'username': 'militsasotirova'}

Message: SERVER-71307 Collation must be simple for search and searchMeta
Branch: master
https://github.com/mongodb/mongo/commit/8ce4b700cd8a2aac5a9a71cbbd7dab089bf7ad75

Generated at Thu Feb 08 06:18:39 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.