We’re building an integration on top of Atlas Search, where we’re allowing an Atlas Search user to build a search UI against any index. It would be ideal to have one endpoint to get all the indices of the cluster v/s having to ask a user to specify their DB + Collection info additionally.I see this working as part of cloud.mongodb.com, but it’s an undocumented endpoint and I would like to know what Auth mechanism this supports to use it programatically.The call is a GET against: https://cloud.mongodb.com/nds/clusters/60cb67c0848c036fd17a281f/Cluster1/fts/indexes
With a response that looks like:
[
{
"analyzer":null,
"analyzers":null,
"collectionName":"shipwrecks",
"database":"sample_geospatial",
"deleteRequestedDate":null,
"indexID":"621f431f31ed037fb9790aa4",
"lastUpdateDate":null,
"mappings":{
...
},
"name":"geo",
"searchAnalyzer":null,
"stats":{
...
},
"status":"STEADY",
"storedSource":null,
"synonyms":null
},
...
]
Following is what we are getting now:
{
"collectionName" : "movies",
"database" : "sample_mflix",
"indexID" : "5d1268a980eef518dac0cf41",
"mappings" : {
"dynamic" : true
},
"name" : "SearchIndex1",
"status" : "STEADY"
}
Following is what we expect:
{
"collectionName" : "movies",
"database" : "sample_mflix",
"indexID" : "5d1268a980eef518dac0cf41",
"mappings" : {
"dynamic" : false,
"fields" : {
"genres" : {
"analyzer" : "lucene.standard",
"type" : "string"
},
"plot" : {
"analyzer" : "lucene.standard",
"type" : "string"
}
}
},
"name" : "SearchIndex1",
"status" : "STEADY"
}