$meta: 'textScore' yields 0 rather than missing in the first stage of a pipeline

XMLWordPrintableJSON

    • Fully Compatible
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

       db.foo.aggregate([{$project: {_id: 1, score: {$meta: 'textScore'}}}])
      

      A score field will appear with the value 0 instead of being absent.

            Assignee:
            Mathias Stearn
            Reporter:
            Matt Dannenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: