We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10ec1da commit 511a476Copy full SHA for 511a476
lib/Doctrine/ODM/MongoDB/SchemaManager.php
@@ -1062,6 +1062,11 @@ private function isSearchIndexCommandException(CommandException $e): bool
1062
return true;
1063
}
1064
1065
+ // MongoDB 6.0.7+ and 7.0+: "$listSearchIndexes stage is only allowed on MongoDB Atlas"
1066
+ if ($e->getMessage() === '$listSearchIndexes stage is only allowed on MongoDB Atlas') {
1067
+ return true;
1068
+ }
1069
+
1070
// Older server versions don't support $listSearchIndexes
1071
// We don't check for an error code here as the code is not documented and we can't rely on it
1072
return str_contains($e->getMessage(), 'Unrecognized pipeline stage name: \'$listSearchIndexes\'');
0 commit comments