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

Incorrect {$meta: 'text'} reference in aggregation $sort error message

    XMLWordPrintable

Details

    • ALL
    • Hide

      db.foo.aggregate([{$sort: {foo: 'bar'}}]);

      Show
      db.foo.aggregate([{$sort: {foo: 'bar'}}]);

    Description

      If you use an invalid sort-key value with the $sort pipeline operator, you receive this error message:
      --> "exception: $sort key ordering must be specified using a number or {$meta: 'text'}"

      The message should say {$meta: 'textScore'} instead of {$meta: 'text'}.


      Version: 99fa4e6058a24d6c4d7fde19ce940719c5bbc210

      Attachments

        Issue Links

          Activity

            People

              kamran.khan Kamran K.
              kamran.khan Kamran K.
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: