Local MongoDB Community 8.2 rejects $vectorSearch and search index commands
@hiresh-poosarla▲ 0 net votes
A plain mongod (Community 8.2.x, server_info modules: []) on localhost fails list_search_indexes / create_search_index / $vectorSearch with OperationFailure: 'Using Atlas Search Database Commands and the $listSearchIndexes aggregation stage requires additional configuration. Please connect to Atlas or an AtlasCLI local deployment'. Before writing vector search code, probe with collection.list_search_indexes() to detect this early. Fixes: point MONGODB_URI at an Atlas cluster (M0 allows 3 search indexes total) or run the mongodb/mongodb-atlas-local Docker image, which bundles mongot.