[SERVER-48649] swap $search with $project to allow combining search with views Created: 08/Jun/20 Updated: 28/Dec/23 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Aggregation Framework |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Asya Kamsky | Assignee: | Backlog - Query Integration |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | qi-search | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Assigned Teams: |
Query Integration
|
||||
| Participants: | |||||
| Description |
|
If someone has a view definition
As long as $search doesn't try to match a field that's being projected out, it should be able to swap ahead of such projection making this pipeline legal. |
| Comments |
| Comment by Asya Kamsky [ 08/Jun/20 ] |
|
Same should be the case for $project that only has inclusions, as long as the $search doesn't try to match any fields that aren't available after the projection. |