I apply an atlas search index with the following command:
atlas clusters search indexes create --clusterName ${MONGO_CLUSTER_NAME} --file ${FILE}
my index file contains the following section for storedSource definition:
{
"name": "default",
"collectionName": "locations",
"database": "core",
"storedSource": {
"include": [
"_id",
"type",
"i18n.fallback.name",
"i18n.en.name",
"i18n.nl.name",
"i18n.de.name",
"i18n.fr.name",
"i18n.es.name",
"i18n.it.name",
"geonamesId",
"accommodationCount"
]
},
"analyzers": [
...
The storedSource definition is completely omitted when the index is created. If I use the exact same code to create an index in the UI it does work…
Is this a bug or do I need to defnie it a separate way?