Skip to content

Commit aa8acf2

Browse files
author
Andrew Leung
committed
removed geoSearch example code.
1 parent c2fda9f commit aa8acf2

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

draft/core/geospatial-indexes.txt

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -177,17 +177,6 @@ in the coordinate in the same bucket.
177177
By default, all queries that use a geospatial haystack index will return 50
178178
documents.
179179

180-
In the following example, the :func:`ensureIndex()
181-
<db.command.ensureIndex()>` method creates an index that would support
182-
a query that returned all locations (e.g. restaurants) in the
183-
``places`` collection within a maximum distance of 2 degrees longitude
184-
or latitude. Create this index using following command:
185-
186-
.. code-block:: javascript
187-
188-
db.places.ensureIndex({ loc: "geoHaystack", type: 1},
189-
{ bucketSize: 2 } )
190-
191180
To query geohaystack indexes, you *must* use the :dbcommand:`geoSearch`
192181
command, please see the :ref:`Querying Haystack Indexes
193182
<geospatial-haystack-queries>` section.

0 commit comments

Comments
 (0)