For AI agents: a documentation index is available at https://www.mongodb.com/docs/llms.txt — markdown versions of all pages are available by appending .md to any URL path.
See how MongoDB 9.0 delivers up to 2x higher throughput.
MongoDB Branding Shape
Register now >
Docs Menu

Process Results with Search Options

MongoDB Search provides several options that you can use to process or refine your $search results. You can use any combination of these options to tailor your search results to your use case.

Use the following table to explore the available search options. Each reference page includes usage details and runnable examples to help you get started:

Use Case
Option

Understand the relevance of your results or adjust the ranking of returned documents

Display results in a specific order, such as by date or alphabetically

Highlight where a user's search term appears in results along with adjacent content

Determine the size of a result set for pagination or analytics

Build pagination features into your application, like "Next Page" and "Previous Page" functions

Rate this page

On this page