Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
n/a
*Location*: https://docs.mongodb.org/getting-started/csharp/indexes/
*User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36
*Referrer*: https://docs.mongodb.org/getting-started/csharp/aggregation/
*Screen Resolution*: 1920 x 1080
*repo*: docs
*source*: indexes
n/a *Location*: https://docs.mongodb.org/getting-started/csharp/indexes/ *User-Agent*: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.125 Safari/537.36 *Referrer*: https://docs.mongodb.org/getting-started/csharp/aggregation/ *Screen Resolution*: 1920 x 1080 *repo*: docs *source*: indexes
Description
The description for "Create compound index" does not match the sample code.
According to the description, the code is suppose to index by descending "address.zipcode" values, but the sample code uses Ascending().
If the intent is descending then change the sample code to use Descending() and adjust the assertion to compare to "cuisine_1_address.zipcode_-1", otherwise change the description to ascending.