Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-1265

Full text search sorted by textScore does not work from Node Driver 3.x

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: 3.0.1
    • Component/s: None
    • Environment:
      Docker container, nodejs 8.9.1-alpine

      I have a NodeJS Microservice to support full text search API using Mongodb. It's working fine with MongoDB NodeJS Driver 2.2.33. However when I upgrade to MongoDB NodeJS Driver 3.0.1 I got this issue: MongoError: must have $meta projection for all $meta sort keys

      Generally, same code works on MongoDB NodeJS Driver 2.2.33, but MongoDB NodeJS Driver 3.0.1.

      I tried the example here https://docs.mongodb.com/manual/reference/operator/query/text/
      , it also does not work with MongoDB NodeJS Driver 3.0.1.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ltcaosj Long Cao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: