Collation option in view not included in count_documents

XMLWordPrintableJSON

    • None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      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. 

       

              Assignee:
              Neil Shweky (Inactive)
              Reporter:
              Neil Shweky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: