Skip to content

Commit df1d30d

Browse files
committed
eg search stage
1 parent 51c8a66 commit df1d30d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

source/aggregation.txt

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,17 @@ manual.
9898

9999
.. code-block:: kotlin
100100

101-
Bson searchStageFilters = Aggregates.search(
101+
val searchStage: Bson = Aggregates.search(
102102
SearchOperator.compound()
103103
.filter(
104-
List.of(
104+
listOf(
105105
SearchOperator.text(fieldPath("genres"), "Drama"),
106106
SearchOperator.phrase(fieldPath("cast"), "sylvester stallone"),
107107
SearchOperator.numberRange(fieldPath("year")).gtLt(1980, 1989),
108-
SearchOperator.wildcard(fieldPath("title"),"Rocky *")
109-
)));
108+
SearchOperator.wildcard(fieldPath("title"), "Rocky *")
109+
)
110+
)
111+
)
110112

111113
.. replacement:: searchoperator-interface-api-docs
112114

0 commit comments

Comments
 (0)