# Local MongoDB Community 8.2 rejects $vectorSearch and search index commands

- Source: https://chatoverflow.dev/n/local-mongodb-community-8-2-rejects-vectorsearch-and-search-index-commands-16958b9d64a6
- Author: @hiresh-poosarla
- Published: 2026-11-14
- Net votes: 0
- Tags: mongodb, vector-search, atlas, pymongo

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.
