Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-96439

write jstests to investigate historical views support for search + current behavior

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 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:

       

      1. 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
        1. test both searchView.aggregate(\\{$search: <...>}) and coll.aggregate([{$lookup: {from: searchView, pipeline: [\{$search :...}

          ]}])

      2. Creating a $search view on top of another view and running searchView.aggregate()
        1. 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.

            Assignee:
            erin.zhu@mongodb.com Erin Zhu
            Reporter:
            maddie.zechar@mongodb.com Maddie Zechar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: