Hi @Gokul_Ks , what tier of Atlas are you running this on? Note the below limitation from the docs which we are working on addressing soon:

You can’t use the mongosh command or driver helper methods to create Atlas Search indexes on M0 , M2 , or M5 Atlas clusters. To create and manage Atlas Search indexes using mongosh or the driver, upgrade to a dedicated cluster tier.

1 Like