-1

I am trying to create a collection specific search index in the atlas MongoDB but not able to find a way.

Found this documentation: https://docs.atlas.mongodb.com/reference/api/atlas-search/#atlas-search-api-ref

but the API they mentioned will create indexed on cluster level

/groups/{GROUP-ID}/clusters/{CLUSTER-NAME}/fts/indexes/

Can someone guide me on how I will create a collection specific search index via script?

Doug
  • 14,387
  • 17
  • 74
  • 104
Vikas Rathore
  • 8,242
  • 8
  • 35
  • 54

1 Answers1

0

When you use the api endpoint you must provide the collection name.

D. SM
  • 13,584
  • 3
  • 12
  • 21