Commit Graph

3999 Commits

Author SHA1 Message Date
Alex Bevilacqua
c8d2d83b0a Update mongo-search-indexes.adoc.
Remove quantization from VectorSearch docs.

Closes: #4931

Signed-off-by: Alex Bevilacqua <alex@alexbevi.com>
2025-04-22 09:33:57 +02:00
Jeff Yemin
d2b7b80dd7 Update mongo-encryption.adoc
Closes: #4947

Signed-off-by: Jeff Yemin <jeff.yemin@mongodb.com>
2025-04-22 09:33:57 +02:00
Mark Paluch
5eaeb926fd Polishing.
Guard tests for encryption functionality.

Original Pull Request: #4885
2025-04-22 09:33:57 +02:00
Mark Paluch
985bb8bfa5 Polishing.
Initialize MongoId also for reactive insertAll(…).

See: #4944
Original pull request: #4945
2025-04-22 09:33:57 +02:00
Christoph Strobl
34c49e0a06 Fix @MongoId mapping for insertAll.
This commit fixes an issue where id properties annotated with MongoId had not been converted into the desired target type when inserting a collection of objects instead a single one.

Resolves: #4944
Original pull request: #4945
2025-04-22 09:33:57 +02:00
Christoph Strobl
272a062473 Update Javadoc.
Original Pull Request: #4885
2025-04-22 09:33:57 +02:00
Mark Paluch
e89548a846 Polishing.
Original Pull Request: #4885
2025-04-22 09:33:56 +02:00
Christoph Strobl
5235aabf29 Introduce Queryable annotation and add Schema derivation.
This commit decouples queryable encryption from explicit encryption and introduces the Queryable annotation to represent different query types like range and equality.
Additionally it removes value conversion from range encryption and fixes update mapping of range encrypted fields.

Original Pull Request: #4885
2025-04-22 09:33:56 +02:00
Ross Lawley
9b7a4e5a37 Adding queryable encryption range support
Supports range style queries for encrypted fields

Closes: #4185
Original Pull Request: #4885
2025-04-22 09:33:56 +02:00
Mark Paluch
1b629bc887 Use MongoDB BOM for version management.
Closes #4946
2025-04-14 09:39:33 +02:00
Woojin Shin
7a0e60b418 Fix typo in javadoc of MongoOperations.stream.
Signed-off-by: Woojin Shin <wish.in@icloud.com>

Closes #4942
2025-04-09 14:56:31 +02:00
Mark Paluch
0ae2054326 Adopt to deprecated QueryMethod constructor.
Closes #4941
2025-04-09 12:04:41 +02:00
Christoph Strobl
0054952230 Deprecate JMX support.
Original pull request: #4936
Closes #4927
2025-04-09 11:04:57 +02:00
Mark Paluch
6f11c08064 Retrieve MongoDB driver version reflectively.
To avoid inlining of the final/static version value, we're using reflection to look up the version value.

Closes #4937
2025-04-09 08:41:11 +02:00
Christoph Strobl
4886eded0e Upgrade to MongoDB driver 5.4.0.
Closes: #4930
2025-03-27 07:46:09 +01:00
Mark Paluch
1951c5b021 Refine @DocumentReference documentation about self._id references.
Closes #4925
2025-03-19 09:42:38 +01:00
Mark Paluch
6a111da5c8 After release cleanups.
See #4898
2025-03-14 09:33:43 +01:00
Mark Paluch
ce50bd5d99 Prepare next development iteration.
See #4898
2025-03-14 09:33:42 +01:00
Mark Paluch
8310e18548 Release version 4.5 M2 (2025.0.0).
See #4898
2025-03-14 09:31:04 +01:00
Mark Paluch
39fadd3787 Prepare 4.5 M2 (2025.0.0).
See #4898
2025-03-14 09:30:46 +01:00
Mark Paluch
833601d847 Polishing.
Tweak documentation, add since tags. Reformat code, change space indents to tab indents.

See #4911
Original pull request: #4912
2025-03-13 15:10:20 +01:00
audghks1996
673d33a49a Add Kotlin extension to accept Kotlin's Pair in BulkOperations.
Closes #4911
Original pull request: #4912

Signed-off-by: audghks1996 <audghks1996@naver.com>
2025-03-13 15:10:00 +01:00
Mark Paluch
5cb0fa80ea Polishing.
Merge List values in Update. Add tests, reformat code.

See: #4918
Original pull request: #4921
2025-03-12 13:54:36 +01:00
Christoph Strobl
8e9728ca78 Fix basic update overriding values.
This change makes sure basic update appends values to operations instead of overriding them. This change aligns the behaviour with Update and fixes issues where using the Update annotation with versioned entities can lead to loss of update information.

Closes: #4918
Original pull request: #4921
2025-03-12 13:54:35 +01:00
Christoph Strobl
d08f0bc162 Remove links to gitter.
Closes: #4919
2025-03-11 10:53:07 +01:00
Mark Paluch
31a3b21aa6 Polishing.
Refine documentation. Simplify NumberToNumberConverter. Replace Environment-based configuration with config API.

See: #3444
Original pull request: #4916
2025-03-11 10:50:27 +01:00
Christoph Strobl
2b6730d1da Introduce Configuration for BigDecimal representation.
We now allow configuring the default representation for BigDecimal and BigInteger values, still defaulting to string. BigDecimal can be configured to use Decimal128 by default.

Closes: #3444
Original pull request: #4916
2025-03-11 10:50:11 +01:00
Mark Paluch
f13d826a69 Refine Querydsl documentation.
See #4894
2025-03-05 11:23:29 +01:00
Christoph Strobl
d79031b60d Apply sort to replace and bulk operation updates
Allow using sort parameter from the query for template replace as well as bulk update & replace operations.
We now also mapped fields used in sort to the domain type considering field annotations.
Also updated javadoc and reference documentation.

Original Pull Request: #4888
2025-03-04 09:43:22 +01:00
Florian Lüdiger
019d915fa2 Add query sort parameter for updateFirst method.
Closes: #4797
Original Pull Request: #4888

Signed-off-by: Florian Lüdiger <florian.luediger@googlemail.com>
2025-03-04 09:43:21 +01:00
Mark Paluch
d7c40a4e6f Polishing.
Introduce ReactiveValidatingEntityCallback, extract BeanValidationDelegate. Document Bean Validation callbacks.

See #4901
Original pull request: #4910
2025-03-04 09:43:02 +01:00
felgentraeger
54c7d8f8fe Introduce ValidatingEntityCallback.
Closes #4901
Original pull request: #4910

Signed-off-by: felgentraeger <rene.felgentraeger@gvl.de>
2025-03-04 09:43:02 +01:00
Mark Paluch
ceac2b879e After release cleanups.
See #4835
2025-02-14 12:25:08 +01:00
Mark Paluch
c402060efe Prepare next development iteration.
See #4835
2025-02-14 12:25:07 +01:00
Mark Paluch
c5057d9741 Release version 4.5 M1 (2025.0.0).
See #4835
2025-02-14 12:22:37 +01:00
Mark Paluch
e01930642e Prepare 4.5 M1 (2025.0.0).
See #4835
2025-02-14 12:22:18 +01:00
Christoph Strobl
49db28dc77 Polishing.
Move SliceUtils to another package for reuse. Slightly alter its API, add tests and update javadoc.

Original Pull Request: #4890
2025-02-13 16:58:34 +01:00
Mark Paluch
63783e6d09 Add support for findBy(…) using predicate that returns a Slice.
Closes: #4889
Original Pull Request: #4890
2025-02-13 16:57:57 +01:00
Mark Paluch
fee8485988 Remove MongoDB 4.x driver compatibility stage.
MongoDB 4.x doesn't ship with Vector types.

See: #4529
See: #4706
2025-02-13 16:15:05 +01:00
Mark Paluch
f52783469b Polishing.
Reformat code. Reuse PersistentEntity for mapping instead of resolving TypeInformation from Class.

Original pull request: #4892
See: #4860
2025-02-13 15:41:35 +01:00
Christoph Strobl
f6f34c349c Fix sort logging in MongoTemplate.
Original pull request: #4892
Closes #4860
2025-02-13 15:35:45 +01:00
Mark Paluch
c1e5deea73 Polishing.
Sync properties with Spring Data Build.

Original pull request: #4893
See #4529
2025-02-13 14:46:24 +01:00
Christoph Strobl
202b00419d Remove MongoDB 4.4 and 5.x test stages.
Stop testing against MongoDB server versions that are EOL already.

MongoDB 4.4: EOL Feb. 2024
MongoDB 5.0: EOL Oct. 2024

Original pull request: #4893
Closes #4529
2025-02-13 14:46:24 +01:00
Mark Paluch
8eedec2036 Refine Querydsl documentation.
Closes #4894
2025-02-13 09:19:15 +01:00
Mark Paluch
0edbcffdf4 Polishing.
Add missing jakarta classifiers.

See #4811
2025-02-13 08:53:43 +01:00
Mark Paluch
dde5a66e94 Update CI Properties.
See #4835
2025-02-11 15:23:12 +01:00
Mark Paluch
a53ea25de2 Polishing.
Remove Field type. Refactor container to subclass MongoDBAtlasLocalContainer. Introduce wait/synchronization to avoid container crashes on create index + list search indexes.

See #4706
Original pull request: #4882
2025-02-04 15:35:25 +01:00
Christoph Strobl
2d7d7bf004 Extend integration tests.
See #4706
Original pull request: #4882
2025-02-04 15:35:15 +01:00
Mark Paluch
e8e110e31d Add VectorIndex and SearchIndexDefinition abstraction.
See #4706
Original pull request: #4882
2025-02-04 15:35:12 +01:00
Marcin Grzejszczak
1645d6c7e4 Converted vector operations to search operations.
See #4706
Original pull request: #4882
2025-02-04 15:35:06 +01:00