Solr 5.1.0: How to set a unique key through the schema API

In Solr 5.1.0, is it possible to set a unique key through the REST api scheme?
I created a collection using a data driven schema.
Solr figured out the type of the field and will create the field based on the data I load.
I can define the fields in advance by sending a POST request, e.g. curl -X POST -H 'Content-type: application / json' --data-binary
'{"add-field": {"name": "ID", "type": "strings", "stored": true}}' host: port / solr / test / schema
But I wonder if there is a way to define it as a unique key.
Tried to add "uniqueKey": true, but it failed

+5
source share
1 answer

Now it is impossible. Its an open feature request. https://issues.apache.org/jira/browse/SOLR-7242

+5
source

All Articles