Class UUIDField

  • public class UUIDField
    extends StrField
    This FieldType accepts UUID string values, as well as the special value of "NEW" which triggers generation of a new random UUID.

    NOTE: Configuring a UUIDField instance with a default value of "NEW " is not advisable for most users when using SolrCloud (and not possible if the UUID value is configured as the unique key field) since the result will be that each replica of each document will get a unique UUID value. Using UUIDUpdateProcessorFactory to generate UUID values when documents are added is recommended instead.

    See Also:
    UUID.toString(), UUID.randomUUID()