On 9/13/22 18:38, dmitri maziuk wrote:
I've a field whose name I typo-ed in a data importer script, so Solr dutifully created the new TYPOed_field and a TYPOed_field_str as per my <dynamicField name="*_str" ... /> directive.

Now it won't let me delete either because "it's referred to by at least one copyfield directive".

Is there a way to force it? Or do I have to delete the dynamicField directive first, then the fields, and then re-create the dynamicField directive? Or something else?

I have no idea whether you have an option with an API call.  It sounds like there currently isn't a way, but I don't have much experience with the config-related APIs, so I could be wrong.

What I would do for this problem is manually edit the schema, re-upload the config to ZK if you're running Solr in cloud mode, and then either reload the collection/core or restart Solr.  I am used to manually editing configs already, though.

Thanks,
Shawn

Reply via email to