Recall & Review
beginner
What is reindexing in Elasticsearch?
Reindexing is the process of copying data from one index to another. It helps update or change the structure of data without losing it.
Click to reveal answer
beginner
Which Elasticsearch API is used for reindexing data?
The
_reindex API is used to copy documents from a source index to a destination index.Click to reveal answer
beginner
What is the basic JSON structure to reindex data from
old_index to new_index?{
"source": { "index": "old_index" },
"dest": { "index": "new_index" }
}Click to reveal answer
intermediate
How can you filter documents during reindexing?
You add a
query inside the source to select only documents that match the filter.Click to reveal answer
beginner
Why might you want to reindex data in Elasticsearch?
To change mappings, update settings, fix errors, or move data to a new index without losing existing documents.
Click to reveal answer
Which API is used to copy data from one Elasticsearch index to another?
✗ Incorrect
The _reindex API copies documents from a source index to a destination index.
What must you specify in the reindex request to select only some documents?
✗ Incorrect
You add a query inside the source to filter which documents to reindex.
If you want to change the mapping of an index, what should you do?
✗ Incorrect
Mappings cannot be changed directly; reindexing into a new index with updated mapping is the correct way.
What happens if you reindex without specifying a query?
✗ Incorrect
Without a query, the _reindex API copies all documents from the source index.
Which of these is NOT a reason to reindex data?
✗ Incorrect
Reindexing copies data; it does not delete documents permanently.
Explain how to perform a basic reindex operation in Elasticsearch.
Think about copying data from one place to another.
You got /4 concepts.
Describe why and when you would use reindexing in Elasticsearch.
Consider situations where data structure or location needs to change.
You got /5 concepts.