You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by jk...@apache.org on 2021/01/08 14:18:07 UTC
[unomi] branch unomi-1.5.x updated: UNOMI-410 : add patch template
(#231)
This is an automated email from the ASF dual-hosted git repository.
jkevan pushed a commit to branch unomi-1.5.x
in repository https://gitbox.apache.org/repos/asf/unomi.git
The following commit(s) were added to refs/heads/unomi-1.5.x by this push:
new e55ad06 UNOMI-410 : add patch template (#231)
e55ad06 is described below
commit e55ad0670a0744a8d0828966d35d7be7db34d6f2
Author: jsinovassin <58...@users.noreply.github.com>
AuthorDate: Wed Jan 6 08:58:40 2021 +0100
UNOMI-410 : add patch template (#231)
---
.../resources/META-INF/cxs/mappings/patch.json | 37 ++++++++++++++++++++++
1 file changed, 37 insertions(+)
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"
+ }
+ }
+}