Skip to content

Commit 75a430d

Browse files
authored
DATAES-833 - Documentation fix for custom date formats.
Original PR: spring-projects#461
1 parent 49f1516 commit 75a430d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/asciidoc/reference/elasticsearch-object-mapping.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ The following annotations are available:
4848
** `analyzer`, `searchAnalyzer`, `normalizer` for specifying custom custom analyzers and normalizer.
4949
* `@GeoPoint`: marks a field as _geo_point_ datatype. Can be omitted if the field is an instance of the `GeoPoint` class.
5050

51+
NOTE: If you are using a custom date format, you need to use _uuuu_ for the year instead of _yyyy_. This is due to a https://www.elastic.co/guide/en/elasticsearch/reference/current/migrate-to-java-time.html#java-time-migration-incompatible-date-formats[change in Elasticsearch 7].
52+
5153
The mapping metadata infrastructure is defined in a separate spring-data-commons project that is technology agnostic.
5254

5355
[[elasticsearch.mapping.meta-model.rules]]

0 commit comments

Comments
 (0)