File tree Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Expand file tree Collapse file tree 1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -177,17 +177,6 @@ in the coordinate in the same bucket.
177
177
By default, all queries that use a geospatial haystack index will return 50
178
178
documents.
179
179
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
-
191
180
To query geohaystack indexes, you *must* use the :dbcommand:`geoSearch`
192
181
command, please see the :ref:`Querying Haystack Indexes
193
182
<geospatial-haystack-queries>` section.
You can’t perform that action at this time.
0 commit comments