File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
source/reference/operator/aggregation Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,30 @@ Atlas Search Index Statuses
110
110
111
111
.. include:: /includes/atlas-search-commands/command-output/search-index-statuses.rst
112
112
113
+ Errors
114
+ ~~~~~~
115
+
116
+ .. versionchanged:: 7.0.3
117
+
118
+ This command throws an error when not executed on Atlas.
119
+
120
+ .. io-code-block::
121
+
122
+ .. input::
123
+ :language: javascript
124
+
125
+ db.names.aggregate( [
126
+ { $listSearchIndexes: { } }
127
+ ] )
128
+
129
+ .. output::
130
+
131
+ MongoServerError: PlanExecutor error during aggregation :: caused by :: Search index commands are only supported with Atlas.
132
+
133
+ In previous releases, this command returns an empty result when not executed
134
+ on Atlas.
135
+
136
+
113
137
Examples
114
138
--------
115
139
You can’t perform that action at this time.
0 commit comments