after several attempts,
i am getting following error : Error: json: cannot unmarshal array into Go struct field FTSMappings.mappings.fields of type map[string]interface {}
Ok, so this is really annoying. I can create the index using the Atlas GUI. The index even becomes active, therefore it seems that there are no issues with the syntax or the config. However, within the terminal, when I try to run this command in the CLI/terminal after creating the index in the GUI
Error: json: cannot unmarshal array into Go struct field FTSMappings.mappings.fields of type map[string]interface {}
Therefore, since the command above is used to view the indexes and even that does not run, it seems that the issue is with the settings in the terminal. It appears that the program is struggling with the parsing the arrays in “purchaseMethod” and “storeLocation”.
To create the index using the Atlas GUI, I used the following settings, along with selecting the ‘sample_supplies’ database and the ‘sales’ collection, along with using the same index name
Thanks for highlighting it. There has been an identified issue with the Atlas CLI regarding JSON parsing, and that has been successfully resolved. You should now be able to complete your labs without any issues.
If you encounter any problems or have any questions, please feel free to reach out to us.