Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2295

Collation option in view not included in count_documents

    XMLWordPrintable

Details

    • Minor Change

    Description

      The problem arrises when doing a find on a collection with collation, and then chaining a count_documents on the end. For example:

      db[:band].insert_many([{ name: "Depeche Mode" }, { name: "New Order" }])
      db[:bands].find({ name: 'DEPECHE MODE' }, { collation: { locale: 'en_US', strength: 2 }}).count_documents
      

      This would return 0, because the count_documents function doesn't get the collation option from the View generated by find. 

       

      Attachments

        Issue Links

          Activity

            People

              neil.shweky@mongodb.com Neil Shweky
              neil.shweky@mongodb.com Neil Shweky
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: