Skip to main content

๐Ÿ“˜ MongoDB Search

MongoDB Search is a fully managed search service built on top of Lucene and the MongoDB aggregation framework. It offers the following features to create a rich search experience:

  • 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.

Usage Exampleโ€‹

{
"$search": {
"index": "default",
"text": {
"query": "search term",
"path": "fieldName"
}
}
}

Refer to our documentation to learn more about MongoDB Search.