I’m using Studio3T Intellishell. We’ve just updated our M10 MongoDB cluster to MongoDB 7.0. I was under the impression that now creating text search indexes will become simpler and I’ll be able to create them straight from the IDE (previously we’ve used Cloud Portal for creating those).
I’ve tried examples from the documentation and there are a couple of them, some use the createSearchIndex command (db.getCollection("xyz").createSearchindex( etc.. ))
, I’m getting error that createSearchIndexfunction does not exist. I’ve also tried the:
db.runCommand(
{
createSearchIndexes: "xyz"
Something runs, but nothing happens.
Can I please get the full syntax with some example. Unless I’ve misunderstood release notes and this is not possible. I don’t want to use the cloud MongoDB portal to create these indexes if there’s another option.