Reputation: 893
I accidentally deleted id field from solr. What to do now?
{
"add-field" : {
"name":"id",
"type":"string"
}
}
Not working too. Core not loaded.
Upvotes: 0
Views: 71
Reputation: 52892
Are you running in SolrCloud mode? If not, edit the managed-schema directly on the disk under the core directory, then restart Solr.
If you're running in cluster / cloud mode, you can first use the downconfig
command to download the current configuration, the use upconfig
to upload the edited configuration.
zkcli.sh
is located under server/scripts/cloud-scripts/zkcli.sh
by default.
Upvotes: 1