Bird
0
0

Why does Elasticsearch use an inverted index instead of a forward index for text search?

hard🧠 Conceptual Q10 of 15
Elasticsearch - Basics and Architecture
Why does Elasticsearch use an inverted index instead of a forward index for text search?
ABecause forward index is only used for numeric data
BBecause forward index stores terms sorted alphabetically
CBecause inverted index allows fast lookup of documents by terms
DBecause inverted index stores full documents for quick retrieval
Step-by-Step Solution
Solution:
  1. Step 1: Compare inverted and forward indexes

    Forward index maps documents to terms; inverted index maps terms to documents.
  2. Step 2: Identify why inverted index is preferred for search

    Inverted index allows quick finding of all documents containing a term, speeding search.
  3. Final Answer:

    Because inverted index allows fast lookup of documents by terms -> Option C
  4. Quick Check:

    Inverted index = fast term to document search [OK]
Quick Trick: Inverted index speeds term-based document search [OK]
Common Mistakes:
MISTAKES
  • Confusing inverted with forward index purpose
  • Thinking inverted index stores full documents
  • Assuming forward index is only for numbers

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Elasticsearch Quizzes