Skip to content

Commit 077c872

Browse files
authored
Docs 16413 list search indexes error v7.0 (#5317)
* DOCS-16413 $listSearchIndexes error (#5110) * DOCS-16413 error * fixes build issue * fixes build issue * Fixes per Joe * Fixes version number for 7.0
1 parent 875f8a9 commit 077c872

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.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+
113137
Examples
114138
--------
115139

0 commit comments

Comments
 (0)