Immutable solution version
MongoDB Atlas Vector Search: SearchNotEnabled / code 31082 on $vectorSearch
Complete solution
MongoDB Atlas Vector Search: SearchNotEnabled / code 31082 on $vectorSearch. ## TL;DR $search and $vectorSearch need Atlas Search on a real Atlas cluster, or a local mongot sidecar on port 7027 for self-hosted setups. ## Fix 1. $search and $vectorSearch need Atlas Search on a real Atlas cluster, or a local mongot sidecar on port 7027 for self-hosted setups. Use when hitting this exact issue with MongoDB Atlas Vector Search. Not for unrelated errors or different features.
When it applies
Not specified by the original author.
Instructions
TL;DR
TL;DR $search and $vectorSearch need Atlas Search on a real Atlas cluster, or a local mongot sidecar on port 7027 for self-hosted setups. ## Fix 1. $search and $vectorSearch need Atlas Search on a real Atlas cluster, or a local mongot sidecar on port 7027 for self-hosted setups. Expected: you can confirm this matches your situation. ## When to use - You are setting up or using this MongoDB Atlas Vector Search feature. - The symptom matches: SearchNotEnabled / code 31082 on $vectorSearch. ## When NOT to use - Unrelated MongoDB Atlas Vector Search issues (different feature, different failure). - You need general documentation for the tool; check the official docs instead. ## Compatibility Reported against MongoDB Atlas Vector Search. Source: a local/non-public address.com/jaewilson07/rag_mongodb. ## Variant phrasings ### SearchNotEnabled / code 31082 on $vectorSearch ## Why it happens $vectorSearch fails with SearchNotEnabled (code 31082).
Fix
TL;DR $search and $vectorSearch need Atlas Search on a real Atlas cluster, or a local mongot sidecar on port 7027 for self-hosted setups. ## Fix 1. $search and $vectorSearch need Atlas Search on a real Atlas cluster, or a local mongot sidecar on port 7027 for self-hosted setups.
Expected: You get the expected result; the problem is gone.
Expected: you can confirm this matches your situation. ## When to use - You are setting up or using this MongoDB Atlas Vector Search feature. - The symptom matches: SearchNotEnabled / code 31082 on $vectorSearch. ## When NOT to use - Unrelated MongoDB Atlas Vector Search issues (different feature, different failure). - You need general documentation for the tool; check the official docs instead. ## Compatibility Reported against MongoDB Atlas Vector Search. Expected: You see the expected output instead of the problem.
Atlas Search is not available on the deployment the query is pointed at. ## Edge cases - If your error message differs even slightly, this is probably a different issue; search the exact text. - If the fix does not help, capture the full error output and check the source link for updates. ## Source a local/non-public address.com/jaewilson07/rag_mongodb Expected: You see the expected output instead of the problem.
When to use
- You are setting up or using this MongoDB Atlas Vector Search feature.
- The symptom matches: SearchNotEnabled / code 31082 on $vectorSearch.
When NOT to use
- Unrelated MongoDB Atlas Vector Search issues (different feature, different failure).
- You need general documentation for the tool; check the official docs instead.
Compatibility
Reported against MongoDB Atlas Vector Search.
Variant phrasings
SearchNotEnabled / code 31082 on $vectorSearch
Why it happens
Source: a local/non-public address.com/jaewilson07/rag_mongodb. ## Variant phrasings ### SearchNotEnabled / code 31082 on $vectorSearch ## Why it happens $vectorSearch fails with SearchNotEnabled (code 31082).
Edge cases
- If your error message differs even slightly, this is probably a different issue; search the exact text.
- If the fix does not help, capture the full error output and check the source link for updates.
Evidence
Source: $vectorSearch fails with SearchNotEnabled (code 31082). Atlas Search is not available on the deployment the query is pointed at.
Verified resolution: [field troubleshooting]: $search and $vectorSearch need Atlas Search on a real Atlas cluster, or a local mongot sidecar on port 7027 for self-hosted setups. Community Edition without the search node cannot run them at all; use the enterprise image or Atlas. On Atlas itself, the error means the vector index was not created or is still building: create it in the Atlas UI under Search Indexes on the collection and wait for Active status. M0 uses IVF, M10+ uses HNSW; queries on a still-building index return nothing.
Source URL: https://github.com/jaewilson07/rag_mongodb
By @issueatlas · Version 4 · Exact version
Maintainer review
Checking maintainer review for this exact version…
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_IC5ZRum039BEgRZgwSuuoQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">MongoDB Atlas Vector Search: SearchNotEnabled / code 31082 on $vectorSearch <span>— Vectle</span></a>