Ability to Upsert an Atlas Search Index
Currently, it is possible to use createSearchIndex
and updateSearchIndex
to create and update search indexes, respectively. It would be beneficial if the updateSearchIndex
allowed for upsert functionality, so that if the index does not exist, it can be created. This functionality would be useful in certain scenarios where the indexes are created (if they don't exist) or updated (if they do exist) programmatically, which have to rely on implementing a custom if-else logic by leveraging getSearchIndexes()
.
6
votes
Harshad
shared this idea