I have a use case that is to create a new core in Solr with new schema dynamically in a program without pre-creating the schema and configurations in instancedir.
I have tried using Solr Core Admin API by calling to:
~/admin/cores?action=CREATE&name=core-name&configSet=basic_configs
And managed to create a new core with the schema of the basic_configs.
However, later I realised that when I change the schema in that core, the respective changes will reflect to the schema of basic_configs as well (as configSet is a shared configuration). Hence, I could not reuse the same API call to create subsequent new cores with new schema.
I understand that this could be achieved using solr command to create cores but I would like to have it in REST API or SolrJ way.
Also, I am not using Solr in SolrCloud mode.