Bird
0
0

Why does Elasticsearch use inverted indexes instead of storing documents as-is for full-text search?

hard🧠 Conceptual Q10 of 15
Elasticsearch - Basics and Architecture
Why does Elasticsearch use inverted indexes instead of storing documents as-is for full-text search?
ABecause inverted indexes map terms to documents, enabling fast search
BBecause storing documents as-is is faster for search
CBecause inverted indexes compress images better
DBecause inverted indexes allow storing binary data
Step-by-Step Solution
Solution:
  1. Step 1: Understand inverted index purpose

    Inverted indexes create a map from terms to documents, making it quick to find documents containing specific words.
  2. Step 2: Compare with storing documents as-is

    Storing documents as-is requires scanning all documents, which is slow for search.
  3. Final Answer:

    Because inverted indexes map terms to documents, enabling fast search -> Option A
  4. Quick Check:

    Inverted index purpose = fast term-to-document lookup [OK]
Quick Trick: Inverted indexes speed up search by mapping terms to documents [OK]
Common Mistakes:
MISTAKES
  • Thinking storing documents as-is is faster
  • Confusing inverted indexes with image compression
  • Believing inverted indexes store binary data

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes