Skip to content

Commit 297bb6a

Browse files
SCBC-463: Fix MatchPhraseQuery
field and analyzer are not being passed in correct order while creating CoreMatchPhraseQuery. Change-Id: I4aff25471d0b38319acdcacb41976deb11261b12 Reviewed-on: https://review.couchbase.org/c/couchbase-jvm-clients/+/210630 Reviewed-by: Graham Pople <[email protected]> Tested-by: Saurabh Mishra <[email protected]>
1 parent f044d78 commit 297bb6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scala-client/src/main/scala/com/couchbase/client/scala/search/queries/MatchPhraseQuery.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ case class MatchPhraseQuery(
6565
override private[scala] def toCore =
6666
new CoreMatchPhraseQuery(
6767
matchPhrase,
68-
analyzer.orNull,
6968
field.orNull,
69+
analyzer.orNull,
7070
boost.map(_.asInstanceOf[java.lang.Double]).orNull
7171
)
7272
}

0 commit comments

Comments
 (0)