You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/main/asciidoc/reference/elasticsearch-misc.adoc
+10
Original file line number
Diff line number
Diff line change
@@ -46,6 +46,16 @@ class Entity {
46
46
<.> `sortModes`, `sortOrders` and `sortMissingValues` are optional, but if they are set, the number of entries must match the number of `sortFields` elements
47
47
====
48
48
49
+
[[elasticsearch.misc.mappings]]
50
+
== Index Mapping
51
+
52
+
When Spring Data Elasticsearch creates the index mapping with the `IndexOperations.createMapping()` methods, it uses the annotations described in <<elasticsearch.mapping.meta-model.annotations>>, especially the `@Field` annotation. In addition to that it is possible to add the `@Mapping` annotation to a class. This annotation has the following properties:
53
+
54
+
* `mappingPath` a classpath resource in JSON format which is used as the mapping, no other mapping processing is done.
55
+
* `enabled` when set to false, this flag is written to the mapping and no further processing is done.
56
+
* `dateDetection` and `numericDetection` set the corresponding properties in the mapping when not set to `DEFAULT`.
57
+
* `dynamicDateFormats` when this String array is not empty, it defines the date formats used for automatic date detection.
0 commit comments