A unique key is a key (string) assigned to a document to uniquely identify it for search purposes. In managed-schema.xml, a unique key is defined as follows:
<uniqueKey>id</uniqueKey>
It is common to use the string type for the unique key.