Skip to content

Commit 583b03e

Browse files
authored
DOCSP-33283 GeoJSON data limitations (#5033)
* DOCSP-33283 GeoJSON data limitations * add query limitation * remove unnecessary note * add error message
1 parent fd73637 commit 583b03e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

source/includes/create-2dsphere-index.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,10 @@ literal ``"2dsphere"`` as the index type:
99
where the ``<location field>`` is a field whose value is either a
1010
:ref:`GeoJSON object <geospatial-geojson>` or a :ref:`legacy
1111
coordinates pair <geospatial-legacy>`.
12+
13+
.. note::
14+
15+
If you try to create an index on a field that contains an array of
16+
geoJSON points, the index build fails and returns the following error:
17+
18+
``MongoServerError: Index build failed``

0 commit comments

Comments
 (0)