Blog

Your dream job? Lets Git IT.
Interactive technical interview preparation platform designed for modern developers.

XGitHub

Platform

  • Categories

Resources

  • Blog
  • About the app
  • FAQ
  • Feedback

Legal

  • Privacy Policy
  • Terms of Service

© 2025 LetsGit.IT. All rights reserved.

LetsGit.IT/Categories/MongoDB
MongoDBmedium

Text indexes: when would you use them and what’s a limitation?

Tags
#mongo#text-index#search#performance
Back to categoryPractice quiz

Answer

Text indexes enable full‑text search on string fields with stemming and tokenization. They’re useful for search features but have limitations (e.g., only one text index per collection and less flexibility than dedicated search engines).

Related questions

MongoDB
Unique vs sparse vs partial indexes: what’s the difference?
#mongo#indexes#unique
MongoDB
`$lookup`: what does it do and what is a common pitfall?
#mongo#lookup#aggregation
MongoDB
Replica set elections: what happens during an election?
#mongo#replica-set#election
MongoDB
Read preference in replica sets: what does `primary` vs `secondary` mean?
#mongo#replica-set#read-preference
MongoDB
Read concern vs write concern: what do they control?
#mongo#consistency#read-concern
MongoDB
Change streams: what are they used for?
#mongo#change-streams#cdc