How to create the Full-Text atlas search index automatically for the collection, when collections are created?

I am quite new to the search in mongodb atlas, after some browsing documentation and blogs in the internet, everyone are creating the search index manually like going to the collection and creating it. But it is not efficient and I am building an app which adds collections to the data dynamically and can have many collections in the database. So, it would be hard to go and create the search index in the each and every collection. Is there a way to may this automatically without any manual work ?

P.S: If there is something wrong or my question doesn’t meet community guidelines, sorry for that, I have contacted support, they said to ask in mongodb forum :slight_smile:

Take a look at May be there is an API to do it.

1 Like

Thanks, for the reply, but couldn’t find the right one…still searching for the answer…