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
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