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

Better error message for $search when there is no search index

    XMLWordPrintable

Details

    • Improvement
    • Status: Open
    • Minor - P4
    • Resolution: Unresolved
    • None
    • None
    • None

    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

            jacob.evans@mongodb.com Jacob Evans
            oren.ovadia@mongodb.com Oren Ovadia
            Votes:
            1 Vote for this issue
            Watchers:
            13 Start watching this issue

            Dates

              Created:
              Updated: