Skip to main content

Vector Operations

Vector Type Mapping

Vectors are numeric BSON arrays, read and written through array mapping. Use a BSON collection handler for a List<Float> entity property rather than storing the vector as a JSON string. For direct commands, see Array Types for binding.

The MongoDB integration does not currently provide builder-based KNN ordering, distance range filters, or combined vector/scalar search. Support for vector type mapping means reading and writing vector values; it does not imply integration with MongoDB native vector search.