[SERVER-86281] $search with access to $$SEARCH_META followed by $lookup returns no results in 7.3.0-rc1 Created: 06/Feb/24 Updated: 07/Feb/24 |
|
| Status: | Needs Scheduling |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Ann Wang | Assignee: | Charlie Swanson |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | adf, search | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Steps To Reproduce: | Populate db/coll:
Query:
Even if the results from $lookup stored in the "match" field are empty, I still expect to see 2 documents returned as shown, but instead I'm seeing zero documents returned. |
||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
Using 7.3.0-rc1 caused an existing test to fail in ADFA that may indicate a bug with $$SEARCH_META used with $lookup. I'm seeing no documents returned when querying using $search and accessing the $$SEARCH_META variable followed by a $lookup. The $search query itself should end up returning 3 documents, but when followed by a $lookup stage returns 0. I don't think this is expected behavior. See steps to reproduce for a similar example. |