Docs Menu
Docs Home
/
MongoDB Atlas
/ / / /

How to Index UUID Fields for Efficient Filtering and Sorting

On this page

  • Define the Index for the uuid Type
  • Configure uuid Field Properties

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.

To define the index for the uuid type, choose your preferred configuration method in the Atlas UI and then select the database and collection.

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.
← How to Index String Fields for Efficient Filtering and Sorting