How to Index UUID Fields for Efficient Filtering and Sorting
Use Universally Unique Identifiers (UUIDs) when you need values that are virtually guaranteed to be unique.
You can use the Atlas Search uuid
type to index, query, and sort over
BSON Binary Subtype 4 fields.
Define the Index for the uuid
Type
To define the index for the uuid
type, choose your preferred
configuration method in the Atlas UI and then select the
database and collection.
Configure uuid
Field Properties
The Atlas Search uuid
type takes the following parameters:
Option | Type | Necessity | Description |
---|---|---|---|
type | uuid | Required | Human-readable label that identifies this field type.
Value must be uuid . |