From 7ff9d1e963c149e60319aa76402cc2cbbaa71c7c Mon Sep 17 00:00:00 2001 From: balyanrobin Date: Fri, 13 Dec 2013 18:53:46 +0530 Subject: [PATCH] Update index-sparse.txt Index is explained to be on score field, so uniqueness for score field will be check by MongoDB. example should show the conflict for the values of score field, rather userid --- source/core/index-sparse.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/core/index-sparse.txt b/source/core/index-sparse.txt index 244c5741499..8f3c7ed4650 100644 --- a/source/core/index-sparse.txt +++ b/source/core/index-sparse.txt @@ -117,5 +117,5 @@ However, this index *would not permit* adding the following documents: .. code-block:: javascript - db.scores.insert( { "userid": "PWWfO8lFs1", "score": 82 } ) - db.scores.insert( { "userid": "XlSOX66gEy", "score": 90 } ) + db.scores.insert( { "userid": "retTgdgefy", "score": 43 } ) + db.scores.insert( { "userid": "nkfkjrfR5s", "score": 34 } )