Skip to content

Commit 883e60e

Browse files
author
Andrew Leung
committed
adding in includeLocs field
1 parent aa8acf2 commit 883e60e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

draft/applications/geospatial-indexes.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,7 @@ For example, to return all documents with the value
525525
:ref:`Spherical queries <geospatial-spherical-representation>` are
526526
not currently supported by haystack indexes.
527527

528+
.. _geospatial-multi-location:
528529

529530
Multi-location Documents
530531
------------------------
@@ -591,6 +592,10 @@ in the following example:
591592

592593
db.records.ensureIndex( { "addresses.loc": "2d" } )
593594

595+
To include the location field with the distance field in
596+
multi-location document queries, specify ``includeLocs: true`` field
597+
in the :dbcommand:`geoNear`.
598+
594599
.. the following is a section about the limitations of geospatial
595600
indexes in sharding:
596601

0 commit comments

Comments
 (0)