Skip to content

Commit 8d0ecf2

Browse files
committed
Update migration-guide-5.2-5.3.adoc
1 parent 4cc80ab commit 8d0ecf2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/antora/modules/ROOT/pages/migration-guides/migration-guide-5.2-5.3.adoc

+7-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,16 @@ This section describes breaking changes from version 5.2.x to 5.3.x and how remo
66
[[elasticsearch-migration-guide-5.2-5.3.breaking-changes]]
77
== Breaking Changes
88

9+
During the parameter replacement in `@Query` annotated repository methods previous versions wrote the String `"null"` into the query that was sent to Elasticsearch when the actual parameter value was `null`.
10+
As Elasticsearch does not store `null` values, this behaviour could lead to problems, for example whent the fields to be searched contains the string `"null"`.
11+
In Version 5.3 a `null` value in a parameter will cause a `ConversionException` to be thrown.
12+
If you are using `"null"` as the
13+
`null_value` defined in a field mapping, then pass that string into the query instead of a Java `null`.
914

1015
[[elasticsearch-migration-guide-5.2-5.3.deprecations]]
1116
== Deprecations
1217

1318
=== Removals
19+
1420
The deprecated classes `org.springframework.data.elasticsearch.ELCQueries`
15-
and `org.springframework.data.elasticsearch.client.elc.QueryBuilders` have been removed, use `org.springframework.data.elasticsearch.client.elc.Queries` instead.
21+
and `org.springframework.data.elasticsearch.client.elc.QueryBuilders` have been removed, use `org.springframework.data.elasticsearch.client.elc.Queries` instead.

0 commit comments

Comments
 (0)