Define Additional Search Options
This section describes the options that you can use with the
$search
stage:
Sort the results in ascending or descending order by date, number (integer, float, and double), and string values.
Parallelize query execution across segments to improve each individual query latency.
Highlight search terms as they appear in the returned documents, along with the adjacent text content (if any).
Retrieve a count of the Atlas Search results for your query.
Paginate results sequentially to build functionality similar to "Next Page" and "Previous Page" in your application.
Track the search terms to view analytics information about the search terms in your queries.
Return fields stored on
mongot
.