On 8/30/22 16:22, Christopher Schultz wrote:
I've been playing-around with trying to programmatically alter the
schema for a Solr core as well, and this explains a LOT of weirdness I
was experiencing.
Jan, thanks for explaining the root problem, but your solution of just
"cloning your Configset" doesn't offer much detail. How does one clone
a config set? How does one USE a Configset? What if you need to delete
a configSet to start-over?
The answer may be different depending on whether you're in cloud mode or
standalone mode.
In standalone, the configsets are on the disk, in
${solr.solr.home}/configsets. In cloud mode, they are in zookeeper.
If you're using the API to modify something, that distinction probably
doesn't matter. But it probably does matter when it comes to creating a
new configset. collection. The configset must be in place before it
can be used in a core/collection creation. For SolrCloud, configset
manipulation is possible using the API, but I don't think it's possible
in standalone.
https://solr.apache.org/guide/solr/latest/configuration-guide/configsets-api.html
Thanks,
Shawn