Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-6934

partial index documentation example references wrong query

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 01112017-cleanup
    • None
    • None
    • None

    Description

      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.
      

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            voss.lytle@mongodb.com Voss Lytle (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              8 years, 5 weeks, 6 days ago