The Solr uniqueKey field encodes the identity semantics of a document. In database jargon, the primary key.

Use cases

A Solr index does not need a unique key, but almost all indexes use one.

Use cases which do not require a unique key

Use cases which require a unique key

Use cases which require a unique key generated from data in the document

Unique key composition

There are different data sources available for the unique key:

Text field in the document

UUID techniques

Cryptographic hash