apache solr 删除复制字段

apache solr delete-copy-field

我创建了一个复制字段。但现在我想删除它。 Solr 抛出错误,即。

{
  "responseHeader":{
    "status":0,
    "QTime":0},
  "errors":[{
      "delete-copy-field":{
        "source":"*assignees",
        "dest":"all_assignees"},
      "errorMessages":["No such operation : delete-copy-field"]}]}

我正在使用 solr-5-0-0。

我使用命令:

curl -X POST -H 'Content-type:application/json' --data-binary '{
  "delete-copy-field":{ "source":"*assignees", "dest":"all_assignees" }
}' http://localhost:8983/solr/<<core name>>/schema

复制字段存在。我已经使用这个命令检查了它:

curl -X GET http://localhost:8983/solr/patentCore/schema/copyfields

我看过solr的官方文档。我正在做与文档中提到的完全相同的事情。

请指出可能是什么问题。

此功能是在 Solr 5.1.0 中添加的,因此您需要升级您的 Solr 版本。