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 |
---|---|---|---|
Next.js + MongoDB authentication problem | 1 | 455 | Jun 2024 |
I can’t connect to self hosted MongoDB using my NodeJS server | 1 | 251 | Jul 2024 |
ValidationFailed: user: Cast to ObjectId failed for value … (type Object) at path “user” because of “BSONError” | 0 | 262 | Sep 2024 |
Problem connecting MongoDB database with Android | 0 | 50 | Nov 2024 |
MongoDB Atlas AWS CDK Resources - CfnNetworkContainer Error | 1 | 11 | 2d |