Skip to content

DOCS-1278 limit option can be used instead of num #803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions source/reference/aggregation/geoNear.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 8 additions & 3 deletions source/reference/command/geoNear.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down