-
Type: Task
-
Resolution: Unresolved
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Integration
We are trying to confirm expected behavior in production for search + views. My assumption is that we should not support any combination of views + $search/$searchMeta/$vectorSearch where the mongot stage would not be the first stage in the pipeline
We should run tests with a version of the server prior to this project starting (SERVER-92918 was first ticket, so prior to that)and test that the following is illegal:
- create a view pipeline that starts with $search and run a $search query on that view. The assumption is this should be illegal because it would be two $search stages in a row and the second $search stage would throw an error because it's the second and not first stage in the pipeline
- test both searchView.aggregate(\\{$search: <...>}) and coll.aggregate([{$lookup:
{from: searchView, pipeline: [\{$search :...}
]}])
- test both searchView.aggregate(\\{$search: <...>}) and coll.aggregate([{$lookup:
{from: searchView, pipeline: [\{$search :...}
- Creating a $search view on top of another view and running searchView.aggregate()
- test creating a $search view on top of a mongot-indexed view and view not indexed by mongot
We should then run this same test with the changes from the project and confirm the results are correct/we haven't broken expected behavior.
- depends on
-
SERVER-97045 decide correct behavior for search + views (and views that contain search) edge cases
- Closed
- related to
-
SERVER-92918 enable running $search/$vectorSearch query on a view and create search indexes on a view
- Closed