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

Better error message for $search in community mongodb

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: In Code Review
    • Priority: Minor - P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:

      Description

      When running a $search on a community edition of mongodb we get the following error:

      > db.fts.aggregate([{$search:{}}])
      2021-10-05T11:33:22.188-0700 E  QUERY    [js] uncaught exception: Error: command failed: {
              "ok" : 0,
              "errmsg" : "Unrecognized pipeline stage name: '$search'",
              "code" : 40324,
              "codeName" : "Location40324"
      } : aggregate failed : 

      Instead we would want to have a more descriptive error message that $search is only available in Atlas.

       

      Marcus Eagan, FYI. Also I have marked this as low priority.

        Attachments

          Activity

            People

            Assignee:
            ribhav.jain Ribhav Jain
            Reporter:
            oren.ovadia Oren Ovadia
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: