Skip to content

Commit 6bc1889

Browse files
committed
JS feedback
1 parent 79f5045 commit 6bc1889

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

source/atlas-search.txt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,19 +98,18 @@ following actions:
9898
Atlas Search Metadata
9999
---------------------
100100

101-
Use the ``searchMeta()`` method to create a
102-
:manual:`$searchMeta </reference/operator/aggregation/searchMeta/>`
103-
pipeline stage which returns only the metadata part of the results from
104-
Atlas full-text search queries.
101+
Use the ``searchMeta()`` method to create a :manual:`$searchMeta
102+
</reference/operator/aggregation/searchMeta/>` pipeline stage, which returns
103+
only the metadata from of the Atlas full-text search results.
105104

106105
.. tip:: Only Available on Atlas for MongoDB v4.4.11 and later
107106

108-
This aggregation pipeline operator is only available
107+
This aggregation pipeline operator is available only
109108
on :atlas:`MongoDB Atlas </>` clusters running v4.4.11 and later. For a
110109
detailed list of version availability, see the MongoDB Atlas documentation
111110
on :atlas:`$searchMeta </atlas-search/query-syntax/#-searchmeta>`.
112111

113-
The following example shows the ``count`` metadata for an Atlas search
112+
The following example shows the ``near`` metadata for an Atlas search
114113
aggregation stage:
115114

116115
.. literalinclude:: /includes/fundamentals/code-snippets/builders/AggregateSearchBuilderExample.java
@@ -127,8 +126,7 @@ Learn more about this helper from the
127126
SearchOperator Helper Methods
128127
-----------------------------
129128

130-
To make building pipeline stages easier, the {+driver-short+} provides helper methods
131-
for the following operations:
129+
The {+driver-short+} provides helper methods for the following operations:
132130

133131
.. list-table::
134132
:widths: 40 60

source/includes/fundamentals/code-snippets/builders/AggregateSearchBuilderExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ private static void runAtlasSearchWithSearchHelperMethods(MongoCollection<Docume
6767
SearchOperator.text(fieldPath("genres"), "Drama"),
6868
SearchOperator.phrase(fieldPath("cast"), "sylvester stallone"),
6969
SearchOperator.numberRange(fieldPath("year")).gtLt(1980, 1989),
70-
SearchOperator.wildcard("Rocky *", fieldPath("title"))
70+
SearchOperator.wildcard(fieldPath("title"),"Rocky *")
7171
)));
7272
// end atlasHelperMethods
7373

0 commit comments

Comments
 (0)