This is the sub-ticket focusing on test coverage parity with $search for sharding. A collection of tests to consider:
https://github.com/10gen/mongo-enterprise-modules/commit/c3336710dbf19fa61db3bc6dd7f004af66e6922d
Note that
- These tests were copied directly from jstests/search
- The tests from focusing on the features we don't support in $vectorSearch are excluded. For example, $SearchMeta, stored source, limit pushdown, etc.
- There might be a few tests that can still be further excluded.
- We need to modify these tests to work for vector search. For example:
- Replace $search with $vectorSearch
- Change to mongot KNN command
- Remove the mocks for planShardedSearch
- is depended on by
-
SERVER-78291 Ensure test coverage parity with $search
- Closed
- is duplicated by
-
SERVER-79249 Add tests for $vectorSearch on an unsharded collection in a sharded cluster
- Closed