A UUID field can store version 1, 3, 4, and 5 UUIDs as specified in RFC 4122.
Xapiand supports a subset of UUID 1 which can be represented as strings in condensed form. Document IDs are of this type by default.
For example, the UUID
00000000-0000-1000-8000-010000000000 can be represented
as the string “~notmet”.
UUIDs as Field Names
Objects which contain UUIDs as field names are detected as a objects with Dynamic Field Names by default. This means, in the following example, all fields will add a single field specification and that will be shared among all four field values.
_index_uuid_field can be used to specify how the UUID field namess will be
- The default, type “uuid”, stores the field name as the UUID value itself.
- The type “uuid_field” stores the field name as the string “
- The type “both” stores the field name as both the UUID value and as “