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.