Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1851

mongosh does not support creating Vector Search Index using createSearchIndex() command w/ description argument

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Shell API
    • Environment:
      OS: Mac OSX

      node.js / npm versions:
      Using MongoDB: 7.0.12
      Using Mongosh: 2.2.12

      Additional info:
      Using AtlasCLI to test Local Dev experience for Atlas Vector Search
    • Developer Tools
    • 3
    • Iteration L (Sep 23- Oct 7)

      Problem Statement/Rationale

      What is going wrong? What action would you like the Engineering team to take?
      I am trying to use Atlas Vector Search with the Atlas CLI Local Dev Experience and I am not able to use the createSearchIndex() command.

      Steps to Reproduce

      How could an engineer replicate the issue you’re reporting?
      AtlasLocalDev rs-localdev [direct: primary] foo> db.bar.createSearchIndex({
      ... "name": "vectorSearchIndexName",
      ... "type": "vectorSearch",
      ... "definition": {
      ... "fields": [
      ...

      { ... "type": "vector", ... "path": "plot_embedding", ... "numDimensions": 1536, ... "similarity": "euclidean" ... }

      ]
      ... }
      ... })

      Expected Results

      What do you expect to happen?
      {
      indexesCreated: [

      { id: '66aa41e9b2168f31214043fd', name: 'vectorSearchIndexName' }

      ],
      ok: 1,
      '$clusterTime': {
      clusterTime: Timestamp(

      { t: 1722434012, i: 2 }

      ),
      signature:

      { hash: Binary.createFromBase64('AAAAAAAAAAAAAAAAAAAAAAAAAAA=', 0), keyId: Long('0') }

      },
      operationTime: Timestamp(

      { t: 1722434012, i: 2 }

      )
      }

      Actual Results

      What do you observe is happening?

      MongoServerError[UnknownError]: "userCommand.indexes[0].mappings" is required

            Assignee:
            Unassigned Unassigned
            Reporter:
            benjamin.flast@mongodb.com Benjamin Flast
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: