We need to add a {limit: k} stage with the kNN 'k' argument after the merging happens when $knn is run in a sharded cluster. See this design section for details.
- is depended on by
-
SERVER-78287 Ensure correct number of documents are returned from sharded kNN
- Closed
-
SERVER-79249 Add tests for $vectorSearch on an unsharded collection in a sharded cluster
- Closed
- is duplicated by
-
SERVER-78287 Ensure correct number of documents are returned from sharded kNN
- Closed