Solr 5.1.0:如何通过 Schema 设置唯一键 API

Solr 5.1.0: How to set the unique key via Schema API

在 Solr 5.1.0 中,是否可以通过 REST 模式设置唯一键 api?
我使用数据驱动架构创建了一个集合。
Solr 会根据我上传的数据猜测字段类型并创建字段。
我仍然可以通过发送像
这样的 POST 请求来预先定义字段 curl -X POST -H 'Content-type:application/json' --data-binary
'{ "add-field":{"name":"ID","type":"strings","stored":true }}' host:port/solr/test/schema

但是我想知道有没有办法将它定义为唯一键。
尝试添加 "uniqueKey":true 但失败了

不,目前还不可能。它是一个开放的功能请求。 https://issues.apache.org/jira/browse/SOLR-7242