https://jira.mongodb.org/browse/SERVER-78831 recently fixed a bug with the $listSearchIndexes aggregation pipeline stage to cause it to throw an error when not connected to an Atlas cluster. Example output from 7.0.1:
> db.adminCommand({ buildInfo: 1 }).version 7.0.1 > db.bar.getSearchIndexes() MongoServerError: PlanExecutor error during aggregation :: caused by :: Search index commands are only supported with Atlas.
There appears to be a regression in the 7.2 alpha releases. This fix is no longer present and $listSearchIndexes returns an empty array when executed against a non-Atlas cluster. Example from 7.2.0-alpha-39-g3e9f147:
> db.adminCommand({buildInfo: 1}).version 7.2.0-alpha-39-g3e9f147 > db.bar.getSearchIndexes() []
- is depended on by
-
CSHARP-4736 Enable Atlas Search Index management tests on sharded clusters
- Blocked
-
PYTHON-3951 [Build Failure] test.test_index_management.TestIndexManagementListSearchIndexes
- Closed
- is related to
-
SERVER-83003 $listSearchIndexes should throw on non-existent DB
- Closed
-
SERVER-78831 Make $listSearchIndexes throw an Exception when used outside of Atlas
- Closed