Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-12488

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

    XMLWordPrintableJSON

Details

    • Fully Compatible
    • ALL

    Description

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

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

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            matt.dannenberg Matt Dannenberg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: