I have setup Cosmos DB with Mongo API, it contains fell fledged documents. Now I would like to add indexes with weights like how we do in Standalone Mongo DB. Can't this be achieved?
Have tried running the below in the Cosmos shell but says its not supported. Any help in this regard is highly appreciated
db.blog.createIndex( { name: "text", desc: "text", headername: "text" }, { weights: { content: 10, keywords: 5 }, name: "TextIndex" } )