Skip to content

Commit

Permalink
DOCSP-14818 Document new Atlas Search searchMeta stage
Browse files Browse the repository at this point in the history
  • Loading branch information
kanchana-mongodb committed Sep 27, 2021
1 parent b5dcaa5 commit 5ba307d
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 2 deletions.
19 changes: 18 additions & 1 deletion source/includes/extracts-agg-stages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,25 @@ content: |
.. note::
``$search`` is only available for MongoDB Atlas clusters,
and is not available for self-managed deployments.
and is not available for self-managed deployments. To
learn more, see :atlas:`Atlas Search Aggregation Pipeline
Stages </reference/atlas-search/query-syntax>`.
* - :pipeline:`$searchMeta`
- Returns different types of metadata result documents for the
:atlas:`Atlas Search </atlas-search>` query against an
:atlas:`Atlas </reference/atlas-search/query-syntax/>`
collection.
.. note::
``$searchMeta`` is only available for MongoDB Atlas
clusters running MongoDB v4.4.9 or higher, and is not
available for self-managed deployments. To learn more, see
:atlas:`Atlas Search Aggregation Pipeline Stages
</reference/atlas-search/query-syntax>`.
* - :pipeline:`$set`
- Adds new fields to documents. Similar to
Expand Down
20 changes: 20 additions & 0 deletions source/reference/operator/aggregation-pipeline.txt
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,25 @@ Alphabetical Listing of Stages
``$search`` is only available for MongoDB Atlas clusters, and
is not available for self-managed deployments.

To learn more, see :atlas:`Atlas Search Aggregation Pipeline
Stages </reference/atlas-search/query-syntax>`.

* - :pipeline:`$searchMeta </reference/operator/aggregation/searcMeta>`

- Returns different types of :ref:`metadata result
<fts-metadata-results>` documents for the :atlas:`Atlas Search
</atlas-search>` query against an :atlas:`Atlas
</reference/atlas-search/query-syntax/>` collection.

.. note::

``$searchMeta`` is only available for MongoDB Atlas clusters
running MongoDB v4.4.9 or higher, and is not available for
self-managed deployments.

To learn more, see :atlas:`Atlas Search Aggregation Pipeline
Stages </reference/atlas-search/query-syntax>`.


* - :pipeline:`$set`

Expand Down Expand Up @@ -344,6 +363,7 @@ Alphabetical Listing of Stages
/reference/operator/aggregation/replaceWith
/reference/operator/aggregation/sample
/reference/operator/aggregation/search
/reference/operator/aggregation/searchMeta
/reference/operator/aggregation/set
/reference/operator/aggregation/setWindowFields
/reference/operator/aggregation/skip
Expand Down
2 changes: 1 addition & 1 deletion source/reference/operator/aggregation/search.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ by an :atlas:`Atlas Search
- :atlas:`Index Definitions
</reference/atlas-search/index-definitions/>` to learn more about
creating and managing Atlas Search indexes.
- :atlas:`$search Aggregation Pipeline Stage
- :atlas:`Atlas Search Aggregation Pipeline Stages
</reference/atlas-search/query-syntax/>` to learn more about the
``$search`` pipeline stage syntax and usage.
- :atlas:`$search Operators </reference/atlas-search/operators/>` to
Expand Down
25 changes: 25 additions & 0 deletions source/reference/operator/aggregation/searchMeta.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
=========================
$searchMeta (aggregation)
=========================

.. default-domain:: mongodb

``searchMeta`` returns different :ref:`types of metadata result
<fts-metadata-results>` documents for Atlas Search queries on the field
or fields in an Atlas collection. The fields must be covered by an
:atlas:`Atlas Search </reference/atlas-search/index-definitions/>`
index. See:

- :atlas:`Index Definitions
</reference/atlas-search/index-definitions/>` to learn more about
creating and managing Atlas Search indexes.
- :atlas:`Atlas Search Aggregation Pipeline Stages
</reference/atlas-search/query-syntax/>` to learn more about the
``$searchMeta`` pipeline stage syntax, usage, and results.

.. important::

The ``$searchMeta`` aggregation pipeline stage is only available for
collections hosted on :atlas:`MongoDB Atlas </>` cluster tiers
running MongoDB version 4.4.9 or later. To learn more, see
:atlas:`Atlas Search </atlas-search/>`.

0 comments on commit 5ba307d

Please sign in to comment.