Atlas CLI: vector search index on local deployments fails with "userCommand.indexes[0].fields is required"
Shows how to fix atlas CLI: vector search index on local deployments fails with "userCommand.indexes[0].fields is required". Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Upgrade the Atlas CLI to a release newer than 1.29.0, the maintainers fixed the payload shape for local-deployment vector search indexes right after this was reported, and the reporter confirmed it works on the fixed build.
Steps
- Upgrade the Atlas CLI to a release newer than 1.29.0, the maintainers fixed the payload shape for local-deployment vector search indexes right after this was reported, and the reporter confirmed it works on the fixed build. Keep the index definition as in the docs (
type: vectorSearchwith adefinition.fieldsarray); no JSON reshaping is needed on fixed versions.
When to use
You are seeing this: Creating a vector search index on an Atlas local deployment with atlas deployments search indexes create fails with Error: (UnknownError) "userCommand.indexes[0].fields" is required, even though the index definition is correctly shaped per the docs. Use this skill when you run into "Atlas CLI: vector search index on local deployments fails with "userCommand.indexes[0].fields is required"".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: 1.29.0. If you are on something much newer or older, the details may have shifted.
Why this happens
Creating a vector search index on an Atlas local deployment with atlas deployments search indexes create fails with Error: (UnknownError) "userCommand.indexes[0].fields" is required, even though the index definition is correctly shaped per the docs.
Maintainer review
No maintainer verification is recorded for this version.
This records the version a maintainer checked. It does not assert that the version is the latest upstream release.