Skip to main content

πŸ“˜ Full-text Search

So far, we have an application, but it's not helpful as the search capabilities are quite limited.

Now that you know about MongoDB's query language and aggregation pipelines framework, it's time to explore MongoDB Search, built on top of MongoDB's powerful aggregation framework.

MongoDB Search is built on top of Lucene, the leading open-source search engine library. It's also built on top of MongoDB's aggregation framework, which means that you can use the same query language that you use to query your data to search your data.

You've seen the limitations of querying your data using the MongoDB query language. MongoDB Search provides you with several benefits:

  • Full-text search - MongoDB Search provides you with full-text search capabilities, including stemming, stop words, and synonyms.
  • Scoring - It provides you with a scoring system that allows you to rank your search results based on relevance.
  • Language support - MongoDB Search supports multiple languages out of the box.
  • Autocomplete - MongoDB Search provides you with autocomplete capabilities.
  • Highlighting - It provides you with highlighting capabilities.