diff --git a/source/reference/aggregation/geoNear.txt b/source/reference/aggregation/geoNear.txt index 716a63c12dc..c3e4a826dbc 100644 --- a/source/reference/aggregation/geoNear.txt +++ b/source/reference/aggregation/geoNear.txt @@ -35,9 +35,15 @@ $geoNear (aggregation) distance. You can use the :term:`dot notation` to specify a field within a subdocument. - :field number num: + :field number limit: Optional. Specifies the maximum number of documents to - return. The default value is 100. + return. The default value is 100. See also the ``num`` + option. + + :field number num: + Optional. Synonym for the ``limit`` option. If both + ``num`` and ``limit`` are included, the ``num`` value + overrides the ``limit`` value. :field number maxDistance: Optional. Limits the results to the documents within the diff --git a/source/reference/command/geoNear.txt b/source/reference/command/geoNear.txt index 6ffee9a2e20..f37056b31b1 100644 --- a/source/reference/command/geoNear.txt +++ b/source/reference/command/geoNear.txt @@ -35,9 +35,14 @@ geoNear :field near: Can use either a GeoJSON point or legacy points, as shown above. - :field num: Optional. Specifies the maximum number of documents to - return. The default value is 100. - + :field limit: Optional. Specifies the maximum number of documents to + return. The default value is 100. See also the ``num`` + option. + + :field num: Optional. Synonym for the ``limit`` option. If both + ``num`` and ``limit`` are included, the ``num`` value + overrides the ``limit`` value. + :field maxDistance: Optional. Limits the results to those falling within a given distance of the center coordinate. For :term:`GeoJSON` data distance is in meters. For