Commit Graph
47 Commits
Author SHA1 Message Date
Stéphane Nicoll 163fac2cb1 Merge branch '4.0.x' into 4.1.x 2026-09-08 18:30:45 +02:00
Stéphane Nicoll 4fc987180d Polish "Add support for creating a container from a TestImage value"
See gh-51082
2026-09-08 18:30:35 +02:00
Stéphane Nicoll 18292d400c Merge branch '4.0.x' into 4.1.x
Closes gh-51628
2026-09-08 16:57:00 +02:00
Stéphane Nicoll b1e91c942e Add support for creating a container from a TestImage value
This commit improves TestImage so that an explicit image can trigger
the creation of the container, with optional additional setup. This
removes the need of creating additional container types for images that
have multiple flavors, and to please the static method that can only
create a container based on a single match.

Closes gh-51082
2026-09-08 16:46:48 +02:00
Stéphane Nicoll 5bf2a32b11 Merge branch '4.0.x' 2026-05-30 14:39:57 +02:00
Stéphane Nicoll 98084aab2b Reformat additional-spring-configuration-metadata.json files 2026-05-30 14:28:53 +02:00
Andy Wilkinson 6a74bb85a3 Merge branch '4.0.x'
Closes gh-50440
2026-05-14 15:03:44 +01:00
Andy Wilkinson add52b6ccd Merge branch '3.5.x' into 4.0.x
Closes gh-50439
2026-05-14 15:02:24 +01:00
Andy Wilkinson fecda943a0 Merge branch '4.0.x'
Closes gh-50189
2026-04-23 08:56:48 +01:00
Andy Wilkinson e41b3bf731 Enable hostname verification for SSL connections to Elasticsearch
Closes gh-50187
2026-04-23 08:56:21 +01:00
Moritz Halbritter 02df21cc07 Polish "Add support for docker.elastic.co/elasticsearch/elasticsearch"
See gh-50119
2026-04-20 09:03:40 +02:00
itsmevichu 1b712e0434 Add support for docker.elastic.co/elasticsearch/elasticsearch
See gh-50119

Signed-off-by: itsmevichu <vishnutheep@gmail.com>
2026-04-20 08:51:50 +02:00
Andy Wilkinson 10659f0d67 Revert "Disable HTTP client's built-in decompression"
This reverts commit c9246cec4f.

Closes gh-48928
2026-03-09 16:45:18 +00:00
Andy Wilkinson a6381c4edc Merge branch '4.0.x'
See gh-49386
2026-03-06 18:09:56 +00:00
Andy Wilkinson f80e7fe67e Merge branch '3.5.x' into 4.0.x
See gh-49385
2026-03-06 18:08:55 +00:00
Andy Wilkinson 5bd0e84157 Make Elasticsearch Docker tests run with Logback available
See gh-49477
2026-03-06 16:27:41 +00:00
Stéphane Nicoll e897935c5a Merge branch '4.0.x'
Closes gh-49386
2026-03-03 13:38:56 +01:00
Stéphane Nicoll 63c7099e84 Merge branch '3.5.x' into 4.0.x
Closes gh-49385
2026-03-03 13:38:43 +01:00
Andy Wilkinson 44748296c7 Merge branch '4.0.x'
Closes gh-48903
2026-01-20 10:02:18 +00:00
Johnny Lim 485b16ad0a Remove @ConditionalOnClass(Sniffer.class) on RestClientSnifferConfiguration
The condition is unnecessary as the sniifer is now included in the
same jar as the REST client itself.

See gh-48900

Signed-off-by: Johnny Lim <izeye@naver.com>
2026-01-20 09:59:59 +00:00
Andy Wilkinson c9246cec4f Disable HTTP client's built-in decompression
The built-in decompression support in HttpClient 5.6 breaks
Elasticsearch's Rest5Client as it results in double decompression.
The first decompression is performed by the Apache HTTP client. It
succeeds. The Elasticsearch Rest5Client then sees the
Content-Encoding: gzip header and makes a second attempt to inflate
the data. This fails as it has already been inflated.

Closes gh-48743
2026-01-09 15:28:15 +00:00
Andy Wilkinson 86fe6a316f Upgrade to HttpCore5 5.4
Closes gh-48744
2026-01-09 09:54:21 +00:00
Stéphane Nicoll 9b7451ed9d Merge branch '3.5.x' into 4.0.x
Closes gh-48622
2025-12-26 09:01:59 +01:00
Stéphane Nicoll ae4bf3e501 Disable Elasticsearch client's sniffer by default
This commit switches the auto-configuration of Elasticsearch to not
contribute a client's sniffer by default.

This matches the best practices as describe in
https://www.elastic.co/blog/elasticsearch-sniffing-best-practices-what-when-why-how

Closes gh-48155
2025-11-18 23:03:25 +01:00
Stéphane Nicoll bc25b58c6f Remove outdated exclusions to commons-logging
Closes gh-48142
2025-11-15 10:53:09 +01:00
Andy Wilkinson e6f6ee78da Move ReactiveElasticsearchClient auto-config to correct module
Closes gh-47848
2025-11-14 09:39:46 +00:00
Stéphane Nicoll 3d23261f87 Merge branch '3.5.x'
Closes gh-48122
2025-11-13 14:55:19 +01:00
Stéphane Nicoll d1e5fe3248 Merge branch '3.5.x'
Closes gh-48106
2025-11-13 10:31:25 +01:00
Filip Hrisafov 163cc8e05a Use elasticsearch-rest5-client in spring-boot-elasticsearch
See gh-47945

Signed-off-by: Filip Hrisafov <filip.hrisafov@gmail.com>
2025-11-05 09:43:47 +00:00
Stéphane Nicoll a92b177698 Polish "Upgrade to Elasticsearch Client 9.2.0"
This commit configures the new Jackson 3 support for Elasticsearch if
available. As for other auto-configurations, Jackson 2 is still
supported in a deprecated fashion.

Closes gh-47847
2025-10-28 15:27:06 +01:00
Eddú Meléndez 7f64615690 Upgrade to Testcontainers 2.0.1
* Update dependencies name
  Modules are prefixed with `testcontainers-`
* Update container classes
  Container classes are under `org.testcontainers.<module-name>` package

See gh-47664

Signed-off-by: Eddú Meléndez <eddu.melendez@gmail.com>
2025-10-17 17:11:24 +02:00
Phillip Webb 8f89bd304f Polish code to fix warnings 2025-10-14 21:51:25 -07:00
Moritz Halbritter 1d4b9d372f Add nullability annotations to tests in module/spring-boot-elasticsearch
See gh-47263
2025-10-06 12:03:54 +02:00
Phillip WebbandAndy Wilkinson dc341edfdd Add config prop to enabled/disable Elasticsearch sniffer
Closes gh-47301

Co-Authored-By: Andy Wilkinson <andy.wilkinson@broadcom.com>
2025-09-23 08:28:51 +01:00
Phillip Webb c1d51f8687 Remove Bitnami support
Closes gh-47267
2025-09-18 14:41:16 -07:00
Phillip WebbandMoritz Halbritter 239f384ac0 Update PropertyMapper to better support nullability
Refactor `PropertyMapper` so that it no longer calls adapter or
predicate methods by default when the source value is `null`. This
effectively makes all default calls the same as using
`alwaysWhenNotNull` in the previous generation of the code.

For the limited times when you do need to deal with `null` values, the
new `always()` method can be used.

For example,

	map.from(source::method).to(destination::method);

Will not call `destination.method(...)` if `source.method()` returns
`null`.

Where as:

	map.from(source::method).always().to(destination::method);

Will call  `destination.method(null)` if `source.method()` returns
`null`.

This update provides clearer semantics for the API and allows for better
JSpecify nullability annotations. It has also simplified much of our
existing property mapper code.

Closes gh-47024

Co-authored-by: Moritz Halbritter <moritz.halbritter@broadcom.com>
2025-09-05 14:43:33 -07:00
Andy Wilkinson 86deef6abf Polish "Add support for Elasticsearch API-key-based authentication"
See gh-46167
2025-09-04 12:08:25 +01:00
Laura Trotta 9a70591f31 Add support for Elasticsearch API-key-based authentication
See gh-46167

Signed-off-by: Laura Trotta <laura.trotta@elastic.co>
2025-09-04 12:01:28 +01:00
Andy Wilkinson d353038c58 Update Jackson support to require Jackson 3
Closes gh-45535
2025-09-02 11:37:09 +01:00
Moritz Halbritter db5680a79c Merge branch '3.5.x' 2025-08-28 14:04:26 +02:00
Moritz Halbritter 7ad90fb963 Improve null-safety of core/spring-boot-docker-compose
See gh-46926
2025-08-26 14:22:53 +02:00
Andy Wilkinson b42a060d0a Merge branch '3.5.x'
Closes gh-46943
2025-08-22 11:59:17 +01:00
Andy Wilkinson 5f929efdf6 Fix Elasticsearch REST client's SSL configuration
See gh-46061
2025-08-04 14:47:31 +01:00
Andy Wilkinson f9ebd0d4fc Migrate from RestClient to new Rest5Client
Closes gh-46061
2025-08-04 10:08:49 +01:00
Moritz Halbritter 5ac6dfcffb Add nullability annotations to module/spring-boot-elasticsearch
See gh-46587
2025-07-30 14:20:39 +02:00
Moritz Halbritter c0f1f641ce Make auto-configurations final and remove public members
Closes gh-32883
2025-07-29 09:48:49 +02:00
Phillip Webb decc32dde3 Restructure project directories to better fit Gradle
Closes gh-46358
2025-07-10 17:54:08 -07:00