Skip to content

Commit 0f2d2e8

Browse files
authored
DOCS-16413 $listSearchIndexes error (#5110)
* DOCS-16413 error * fixes build issue * fixes build issue * Fixes per Joe
1 parent 3e2813a commit 0f2d2e8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

source/reference/operator/aggregation/listSearchIndexes.txt

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,30 @@ Atlas Search Index Statuses
110110

111111
.. include:: /includes/atlas-search-commands/command-output/search-index-statuses.rst
112112

113+
Errors
114+
~~~~~~
115+
116+
.. versionchanged:: 7.1
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+
113137
Examples
114138
--------
115139

0 commit comments

Comments
 (0)