Bird
Raised Fist0

In a search system, the query parser is not normalizing case (uppercase/lowercase). What issue can this cause?

medium📝 Analysis Q7 of Q15
LLD - Design — Library Management System
In a search system, the query parser is not normalizing case (uppercase/lowercase). What issue can this cause?
ARanking scores will be inaccurate
BSearch results may miss matches due to case differences
CThe index size will increase exponentially
DThe system will crash on uppercase queries
Step-by-Step Solution
Solution:
  1. Step 1: Understand case normalization

    Converting all text to lowercase ensures consistent matching regardless of user input case.
  2. Step 2: Identify impact of missing normalization

    Without it, 'Apple' and 'apple' are treated differently, causing missed matches.
  3. Final Answer:

    Search results may miss matches due to case differences -> Option B
  4. Quick Check:

    Missing case normalization = missed matches [OK]
Quick Trick: Normalize case to avoid missing matches [OK]
Common Mistakes:
MISTAKES
  • Thinking index size grows exponentially
  • Assuming system crashes on uppercase
  • Confusing ranking with case normalization

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More LLD Quizzes