Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(UnknownError) "userCommand.indexes[0].fields" is required when creating vector search index on local deployments #3321

Closed
YoninL opened this issue Oct 14, 2024 · 3 comments · Fixed by #3371
Assignees

Comments

@YoninL
Copy link

YoninL commented Oct 14, 2024

Describe the bug
Command:
atlas deployments search indexes create --deploymentName local9626 -f index.json

index.json:

{
  "collectionName": "test-collection",
  "database": "test",
  "definition": {
    "fields": [
      {
        "numDimensions": 1024,
        "path": "embedding",
        "similarity": "cosine",
        "type": "vector"
      }
    ]
  },
  "name": "vector_index",
  "type": "vectorSearch"
}

Output:
Error: (UnknownError) "userCommand.indexes[0].fields" is required
To Reproduce
Steps to reproduce the behavior:

  1. Setup local dev env using the atlas cli
  2. Run the command above to create the vector index
  3. See error

Expected behavior
No errors, index can be created successfully.

Desktop (please complete the following information):

  • OS: Ubuntu Linux 22.04.4
  • MongoCLI version
atlascli version: 1.29.0
git version: 04b1d057cff6f17ad13185c6a7f4fd0408473615
Go version: go1.22.7
   os: linux
   arch: amd64
   compiler: gc
Copy link
Contributor

Thanks for opening this issue. The ticket CLOUDP-278381 was created for internal tracking.

@YoninL YoninL changed the title (UnknownError) "userCommand.indexes[0].fields" is required when create vector search index on local deployments (UnknownError) "userCommand.indexes[0].fields" is required when creating vector search index on local deployments Oct 14, 2024
@fmenezes fmenezes self-assigned this Oct 16, 2024
@fmenezes
Copy link
Collaborator

Hello @YoninL thanks for reporting this issue, the issue has been reported to the relevant team.

@YoninL
Copy link
Author

YoninL commented Nov 18, 2024

@fmenezes Thanks a lot for the fix. I tried the build from master branch and it works fine, when will you release the new version?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants