mongodb geoNear vs near

前端 未结 4 2089
梦如初夏
梦如初夏 2021-02-04 09:17

It looks like mongodb offers two similar functions for geospatial queries - $near and $geoNear. According to the mongo docs

The

4条回答
  •  灰色年华
    2021-02-04 09:27

    The 100 documents limit with GeoNear is the default behaviour but you can just set the num fields as described on the mongodb documentation (http://docs.mongodb.org/manual/reference/command/geoNear/)

    Default is set to 100 but you can set more. Unfortunately skip parameter is missing for the moment (see https://jira.mongodb.org/browse/SERVER-3925)

提交回复
热议问题