|
The partial index documentation page here https://docs.mongodb.org/manual/core/index-partial/,
when explaining the "following" example, appears to reference the query predicate from the previous example instead of the query predicate from the "following" example. See the attached screen shot highlighting the section of the documentation and the different query predicates involved.
It appears that the section should say:
That is, the query { cuisine: "Italian", rating: { $lt: 8 } } matches more
|
documents (e.g. an Italian restaurant with a rating equal to 1) than are indexed.
|
instead of the current version that says:
That is, the query { cuisine: "Italian", rating: { $gte: 8 } } matches more
|
documents (e.g. an Italian restaurant with a rating equal to 1) than are indexed.
|
|