Skip to content

Commit 927c732

Browse files
authored
Fix Int Test for Regex and Wildcard Operator (#1611)
Fix int test for regex and wildcard operator The merged PRs for the regex and wildcard causes the AggregatesSearchIntegrationTest to fail. This PR fixes the integration test, so it passes. JAVA-5726
1 parent 22006bd commit 927c732

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

driver-core/src/test/functional/com/mongodb/client/model/search/AggregatesSearchIntegrationTest.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,10 @@ private static Stream<Arguments> searchAndSearchMetaArgs() {
614614
near(0, 1.5, fieldPath("fieldName7"), fieldPath("fieldName8")),
615615
near(Instant.ofEpochMilli(1), Duration.ofMillis(3), fieldPath("fieldName9")),
616616
phrase(fieldPath("fieldName10"), "term6"),
617-
regex(fieldPath("fieldName11"), "term7"),
617+
regex(fieldPath("title").multi("keyword"), "term7"),
618618
queryString(fieldPath("fieldName12"), "term8"),
619-
wildcard(asList("term10", "term11"), asList(wildcardPath("wildc*rd"), fieldPath("fieldName14")))
619+
wildcard(asList("term10", "term11"), asList(wildcardPath("wildc*rd"), fieldPath("title").multi(
620+
"keyword")))
620621
))
621622
.minimumShouldMatch(1)
622623
.mustNot(singleton(

0 commit comments

Comments
 (0)