$listSearchIndexes behavior should be consistent with other aggregations when the collection does not exist

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: 7.0.28
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The behavior fixed by SERVER-78848 is back in 7.0.28 and probably in earlier versions.
      This causes tests failures for drivers.

      Works as expected on latest and 8.0.17.

      Example:
      aggregate({ $listSearchIndexes :

      { 'name' : 'test index' }

      }) returns empty results while it should fail with
      "[MongoServerError[SearchNotEnabled]:|#] Using Atlas Search Database Commands and the $listSearchIndexes aggregation stage requires additional configuration"

            Assignee:
            Unassigned
            Reporter:
            Boris Dogadov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: