Intermediate

Text Search and Pattern Matching in MongoDB

The performance impact of a regex query depends primarily on whether or not it can use an index.

This training covers the text search functionalities of MongoDB: full-text search via the $text operator and pattern matching via regular expressions ($regex). It is aimed at developers and analysts who work with semi-structured or unstructured data, such as customer reviews, product descriptions, social media posts, and user-generated content.

Recommended prerequisites: basic knowledge of MongoDB (Compass, Shell, connection to a cluster)

Sign in to read this course

A free account unlocks all 514 courses. 20 are readable without one.

What's inside

8 sections
  1. 1 Table of Contents
  2. 2 General Introduction
  3. 3 Understand MongoDB's capabilities for text searching
  4. 4 Perform a basic full text search with $text
  5. 5 Pattern Matching with Regular Expressions
  6. 6 Apply text search techniques to common analysis tasks
  7. 7 Quick Reference — Operator Comparison
  8. 8 Best practices and summary

More MongoDB & NoSQL courses

View all 7

Interested in this course?

Contact us to book it or get a custom training plan for your team.