Skip to content

Commit

Permalink
DOCS-3962 typo
Browse files Browse the repository at this point in the history
  • Loading branch information
kay-kim committed Aug 29, 2014
1 parent 0a5fa5b commit f9197af
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions source/tutorial/measure-index-use.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,17 @@ example:

.. code-block:: javascript

db.people.find( { name: "John Doe", zipcode: { $gt: "63000" } } } ).hint( { zipcode: 1 } )
db.people.find( { name: "John Doe", zipcode: { $gt: "63000" } } ).hint( { zipcode: 1 } )

You can use :method:`~cursor.hint()` and :method:`~cursor.explain()` in conjunction with each other to compare the
effectiveness of a specific index. Specify the ``$natural`` operator
to the :method:`~cursor.hint()` method to prevent MongoDB from
using *any* index:
You can use :method:`~cursor.hint()` and :method:`~cursor.explain()` in
conjunction with each other to compare the effectiveness of a specific
index. Specify the ``$natural`` operator to the
:method:`~cursor.hint()` method to prevent MongoDB from using *any*
index:

.. code-block:: javascript

db.people.find( { name: "John Doe", zipcode: { $gt: "63000" } } } ).hint( { $natural: 1 } )
db.people.find( { name: "John Doe", zipcode: { $gt: "63000" } } ).hint( { $natural: 1 } )

Instance Index Use Reporting
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit f9197af

Please sign in to comment.