Full-text search (built-in, not Elasticsearch)
Text indexes enable $text queries with relevance scoring. Good for simple search — not for typo-tolerant fuzzy matching at scale.
One text index per collection (combining multiple fields). Plan accordingly.
Output
Press Run to execute your code.