UNOMI-410 : add patch template (#231)
diff --git a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/patch.json b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/patch.json
new file mode 100644
index 0000000..b18dfc2
--- /dev/null
+++ b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/patch.json
@@ -0,0 +1,37 @@
+{
+ "dynamic_templates": [
+ {
+ "all": {
+ "match": "*",
+ "match_mapping_type": "string",
+ "mapping": {
+ "type": "text",
+ "analyzer": "folding",
+ "fields": {
+ "keyword": {
+ "type": "keyword",
+ "ignore_above": 256
+ }
+ }
+ }
+ }
+ }
+ ],
+ "properties": {
+ "patchedItemId": {
+ "type": "text"
+ },
+ "patchedItemType": {
+ "type": "text"
+ },
+ "operation": {
+ "type": "text"
+ },
+ "data": {
+ "type": "object"
+ },
+ "lastApplication": {
+ "type": "date"
+ }
+ }
+}