From ad1959de8d1033c4679ada2c8460a443e58e7b18 Mon Sep 17 00:00:00 2001 From: Anil Kumar Date: Wed, 7 May 2014 12:09:29 -0400 Subject: [PATCH] code blocks are mis-placed The code blocks do not align with what is being described above them. Re-arranging them in proper places now. --- source/core/query-optimization.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/query-optimization.txt b/source/core/query-optimization.txt index 528b0d49829..fd0781d7280 100644 --- a/source/core/query-optimization.txt +++ b/source/core/query-optimization.txt @@ -108,7 +108,7 @@ documents. .. code-block:: javascript db.inventory.find( { type: "food", item:/^c/ }, - { item: 1, _id: 0 } ) + { item: 1 } ) However, the index will **not** cover the following query, which returns the ``item`` field **and** the ``_id`` field: @@ -116,7 +116,7 @@ documents. .. code-block:: javascript db.inventory.find( { type: "food", item:/^c/ }, - { item: 1 } ) + { item: 1, _id: 0 } ) See :ref:`indexes-covered-queries` for more information on the behavior and use of covered queries.