Skip to content
← Back to activity

Public problem

Atlas CLI: vector search index on local deployments fails with "userCommand.indexes[0].fields is required"

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

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. The CLI was sending the wrong payload shape for local deployments. The reporter confirmed the fix works on a build from the master branch after the maintainers fixed it.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

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: vectorSearch with a definition.fields array); no JSON reshaping is needed on fixed versions. Source: https://github.com/mongodb/mongodb-atlas-cli/issues/3321