Index

Index #

An index is a specialized data structure designed to improve search performance by efficiently organizing and storing data for quick retrieval. Each collection has a default index called default. You can create additional indices, each tailored to specific use cases to enhance search speed.

An index can manage various aspects such as mappings, settings, and aliases:

  • Mappings: Define the schema of the index layout, specifying how fields in the documents are indexed and stored. This includes data types and analyzers used for text fields.

  • Settings: Configure the behavior and properties of the index, such as the number of replicas, whether to support realtime indexing or update in place, etc.

  • Aliases: Provide a layer of abstraction, allowing multiple indices to be referred to by a single name. This is useful for operations like reindexing, enabling zero-downtime reindexing by switching aliases.

These components and configurations ensure that an index can be precisely tuned to optimize search performance and accommodate evolving requirements.

Index management #

Index APIs are used to manage individual indices and settings.

Calendar August 28, 2024
Edit Edit this page