🔍 Elasticsearch
Intermediate
What is an index alias in Elasticsearch?
Answer
An alias is a secondary name that points to one or more indices, allowing you to decouple your application from the physical index name. For read/write separation, you can have a read alias pointing to multiple indices and a write alias pointing only to the current active index. The most powerful use case is zero-downtime reindexing: your application always reads/writes via the alias, so when you need to reindex, you atomically swap the alias from old to new with a single POST /_aliases call (no application code changes). Aliases can also include a filter query to create a virtual "view" of a subset of documents.
Previous
What is the Reindex API and when would you use it?
Next
What is the Scroll API and when should you use it?
More Elasticsearch Questions
View all →- Intermediate What is the difference between query context and filter context in Elasticsearch?
- Intermediate What is a bool query in Elasticsearch?
- Intermediate What are aggregations in Elasticsearch?
- Intermediate What is the difference between text and keyword field types?
- Intermediate What are index templates and component templates in Elasticsearch?