Skip to content

fix indents #1366

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
22 changes: 11 additions & 11 deletions source/reference/command/geoNear.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,20 +29,20 @@ Definition
Command Format
--------------

To query a :doc:`2dsphere </core/2dsphere>` index, use the
following syntax:
To query a :doc:`2dsphere </core/2dsphere>` index, use the
following syntax:

.. code-block:: javascript
.. code-block:: javascript

db.runCommand( { geoNear : <collection> ,
near : { type : "Point" ,
coordinates: [ <coordinates> ] } ,
spherical : true } )
db.runCommand( { geoNear : <collection> ,
near : { type : "Point" ,
coordinates: [ <coordinates> ] } ,
spherical : true } )

To query a :doc:`2d </core/2d>` index, use:
To query a :doc:`2d </core/2d>` index, use:

.. code-block:: javascript
.. code-block:: javascript

{ geoNear : <collection> , near : [ <coordinates> ] }
{ geoNear : <collection> , near : [ <coordinates> ] }

.. read-lock, slave-ok
.. read-lock, slave-ok
22 changes: 12 additions & 10 deletions source/reference/operator/aggregation/geoNear.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ $geoNear (aggregation)

.. default-domain:: mongodb

Definition
----------

.. pipeline:: $geoNear

.. versionadded:: 2.4
Expand All @@ -30,19 +33,18 @@ $geoNear (aggregation)

.. include:: /reference/operator/aggregation/geoNear-field.rst

.. note::
.. note::

The options for :pipeline:`$geoNear` are similar to the
:dbcommand:`geoNear` command with the following
exceptions:
The options for :pipeline:`$geoNear` are similar to the
:dbcommand:`geoNear` command with the following exceptions:

- ``distanceField`` is a mandatory field for the
:pipeline:`$geoNear` pipeline operator; the option does not
exist in the :dbcommand:`geoNear` command.
- ``distanceField`` is a mandatory field for the
:pipeline:`$geoNear` pipeline operator; the option does not exist
in the :dbcommand:`geoNear` command.

- ``includeLocs`` accepts a ``string`` in the
:pipeline:`$geoNear` pipeline operator and a ``boolean`` in the
:dbcommand:`geoNear` command.
- ``includeLocs`` accepts a ``string`` in the :pipeline:`$geoNear`
pipeline operator and a ``boolean`` in the :dbcommand:`geoNear`
command.

Example
-------
Expand Down
4 changes: 2 additions & 2 deletions source/reference/operator/aggregation/group.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ $group (aggregation)
The following example of an ``_id`` field specifies a document that
consists of multiple fields:

.. code-block:: javascript
.. code-block:: javascript

{ _id : { author: '$author', pageViews: '$pageViews', posted: '$posted' } }
{ _id : { author: '$author', pageViews: '$pageViews', posted: '$posted' } }

Every :pipeline:`$group` expression **must** specify an ``_id``
field. In addition to the ``_id`` field, :pipeline:`$group`
Expand Down