Skip to content

Add BinaryVector and VectorSearchQuery vectorSearch overloads to Scala driver#1986

Merged
rozza merged 4 commits into
mongodb:mainfrom
rozza:JAVA-5699
May 28, 2026
Merged

Add BinaryVector and VectorSearchQuery vectorSearch overloads to Scala driver#1986
rozza merged 4 commits into
mongodb:mainfrom
rozza:JAVA-5699

Conversation

@rozza
Copy link
Copy Markdown
Member

@rozza rozza commented May 27, 2026

The Scala Aggregates wrapper only exposed the Iterable[Double] overload of vectorSearch. This adds the BinaryVector (since 5.3) and VectorSearchQuery auto-embedding (since 5.7) overloads. Changes the existing overload's parameter from Iterable[java.lang.Double] to Iterable[Double] to resolve Scala type inference ambiguity when multiple overloads are present.

Also fixes scaladoc warnings for unresolvable cross-module Java type links.

JAVA-5699

…a driver

The Scala Aggregates wrapper only exposed the `Iterable[Double]` overload of
vectorSearch. This adds the `BinaryVector` (since 5.3) and `VectorSearchQuery`
auto-embedding (since 5.7) overloads. Changes the existing overload's parameter
from `Iterable[java.lang.Double]` to `Iterable[Double]` to resolve Scala type
inference ambiguity when multiple overloads are present.

Also fixes scaladoc warnings for unresolvable cross-module Java type links.

JAVA-5699
@rozza rozza requested a review from a team as a code owner May 27, 2026 10:32
@rozza rozza requested a review from nhachicha May 27, 2026 10:33
@rozza rozza requested review from vbabanin and removed request for nhachicha May 27, 2026 10:33
Comment thread driver-scala/src/main/scala/org/mongodb/scala/model/Aggregates.scala Outdated
vbabanin
vbabanin previously approved these changes May 28, 2026
Copy link
Copy Markdown
Member

@vbabanin vbabanin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Just two comment regarding @since.

Comment thread driver-scala/src/main/scala/org/mongodb/scala/model/Aggregates.scala Outdated
Co-authored-by: Viacheslav Babanin <frest0512@gmail.com>
@rozza rozza requested a review from vbabanin May 28, 2026 15:39
@rozza rozza merged commit f3bbdb2 into mongodb:main May 28, 2026
29 of 30 checks passed
@rozza rozza deleted the JAVA-5699 branch May 28, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants