I am using createSearchIndex to create atlas search from cli using power shell, it is not working gives error below query and error both mention.
Thank you
Atlas atlas-oijpef-shard-0 [primary] mydatabase> db.movies.createSearchIndex(
… “titleIndex”,
… {
… “mappings”: {
… “fields”: {
… “title”: {
… “type”: “string”
… }
… }
… }
… }
… )
MongoServerError[CommandNotFound]: command not found
Skip to main content
What type of Atlas cluster is that?
its related to vector search
it is sample which want create actually i want to create below syntax with replace of above json values
{
“mappings”: {
“dynamic”: true,
“fields”: {
“Embedding”: {
“dimensions”: 1536,
“similarity”: “cosine”,
“type”: “knnVector”
}
}
}
}
this is working for manually adding on database but i want to try with help of cli can be generate and see into atlas search index section. there is currently one added. By the query generate CLI command I want to see in that section.
Thank you
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
AWS VPC peering with Atlas from our VPC with multiple CIDR ranges | 0 | 307 | May 2024 |
Edge Server Sync Specific Database | 0 | 184 | Aug 2024 |
Load Sample Dataset Error | 3 | 573 | Nov 2024 |
Error connecting to mongodb atlas from netlify server through functions | 3 | 100 | Oct 2024 |
Can’t download json file of my collection? | 1 | 36 | Feb 25 |