22
22
import com .mongodb .client .model .geojson .Point ;
23
23
import com .mongodb .client .model .geojson .Position ;
24
24
import com .mongodb .client .test .CollectionHelper ;
25
- import com .mongodb .lang .Nullable ;
26
25
import org .bson .BsonDocument ;
27
26
import org .bson .codecs .BsonDocumentCodec ;
28
27
import org .bson .conversions .Bson ;
@@ -274,7 +273,7 @@ private static Stream<Arguments> args() {
274
273
"default options" ,
275
274
stageCreator (
276
275
exists (fieldPath ("tomatoes.dvd" )),
277
- null
276
+ searchOptions ()
278
277
),
279
278
MFLIX_MOVIES_NS ,
280
279
asList (
@@ -460,7 +459,7 @@ private static Stream<Arguments> args() {
460
459
relevanceExpression ()))),
461
460
gaussExpression (0 , pathExpression (fieldPath ("gaussianFieldName" )), 1 )))))
462
461
)),
463
- null
462
+ searchOptions ()
464
463
),
465
464
MFLIX_MOVIES_NS ,
466
465
asList (
@@ -503,7 +502,7 @@ private static Stream<Arguments> args() {
503
502
.minimumShouldMatch (1 )
504
503
.mustNot (singleton (
505
504
compound ().must (singleton (exists (fieldPath ("fieldName" )))))),
506
- null
505
+ searchOptions ()
507
506
),
508
507
MFLIX_MOVIES_NS ,
509
508
asList (
@@ -526,7 +525,7 @@ private static Stream<Arguments> args() {
526
525
1234.5 ,
527
526
fieldPath ("address.location" ))
528
527
)),
529
- null
528
+ searchOptions ()
530
529
),
531
530
AIRBNB_LISTINGS_AND_REVIEWS_NS ,
532
531
asList (
@@ -610,7 +609,7 @@ private static Asserter decorate(final Asserter asserter) {
610
609
}
611
610
}
612
611
613
- private static CustomizableSearchStageCreator stageCreator (final Bson operatorOrCollector , @ Nullable final SearchOptions options ) {
612
+ private static CustomizableSearchStageCreator stageCreator (final Bson operatorOrCollector , final SearchOptions options ) {
614
613
return customizer -> customizer .apply (operatorOrCollector , options );
615
614
}
616
615
0 commit comments