This is an automated email from the ASF dual-hosted git repository.

jkevan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/unomi.git


The following commit(s) were added to refs/heads/master by this push:
     new 60fb73b6c UNOMI-586: Optimize ES mappings by ignoring conditions and 
Objects that are not used for queries (#448)
60fb73b6c is described below

commit 60fb73b6c637917cf1f82ab208ba9657f85c6f2d
Author: kevan Jahanshahi <[email protected]>
AuthorDate: Mon Jun 27 16:42:21 2022 +0200

    UNOMI-586: Optimize ES mappings by ignoring conditions and Objects that are 
not used for queries (#448)
---
 .../core/src/main/resources/META-INF/cxs/mappings/campaign.json   | 4 ++++
 .../src/main/resources/META-INF/cxs/mappings/conditionType.json   | 8 +++++++-
 .../core/src/main/resources/META-INF/cxs/mappings/goal.json       | 8 ++++++++
 .../core/src/main/resources/META-INF/cxs/mappings/patch.json      | 3 ++-
 .../core/src/main/resources/META-INF/cxs/mappings/rule.json       | 4 ++++
 .../core/src/main/resources/META-INF/cxs/mappings/scoring.json    | 8 ++++++++
 6 files changed, 33 insertions(+), 2 deletions(-)

diff --git 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/campaign.json
 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/campaign.json
index d0ed2d32e..9cfabbb94 100644
--- 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/campaign.json
+++ 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/campaign.json
@@ -42,6 +42,10 @@
           "type": "boolean"
         }
       }
+    },
+    "entryCondition":  {
+      "type": "object",
+      "enabled": false
     }
   }
 }
\ No newline at end of file
diff --git 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/conditionType.json
 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/conditionType.json
index e1ac5f8d4..61919135a 100644
--- 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/conditionType.json
+++ 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/conditionType.json
@@ -16,5 +16,11 @@
         }
       }
     }
-  ]
+  ],
+  "properties": {
+    "parentCondition":  {
+      "type": "object",
+      "enabled": false
+    }
+  }
 }
\ No newline at end of file
diff --git 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/goal.json
 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/goal.json
index 3d3322bd4..c1f264951 100644
--- 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/goal.json
+++ 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/goal.json
@@ -33,6 +33,14 @@
           "type": "boolean"
         }
       }
+    },
+    "startEvent": {
+      "type": "object",
+      "enabled": false
+    },
+    "targetEvent": {
+      "type": "object",
+      "enabled": false
     }
   }
 }
\ No newline at end of file
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
index b18dfc2e6..e622845c4 100644
--- 
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
@@ -28,7 +28,8 @@
       "type": "text"
     },
     "data": {
-      "type": "object"
+      "type": "object",
+      "enabled": false
     },
     "lastApplication": {
       "type": "date"
diff --git 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
index f3fc85f49..7314176cd 100644
--- 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
+++ 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/rule.json
@@ -45,6 +45,10 @@
     },
     "raiseEventOnlyOnce": {
       "type": "boolean"
+    },
+    "condition": {
+      "type": "object",
+      "enabled": false
     }
   }
 }
\ No newline at end of file
diff --git 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/scoring.json
 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/scoring.json
index dd890c742..e313cdfaf 100644
--- 
a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/scoring.json
+++ 
b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/scoring.json
@@ -33,6 +33,14 @@
           "type": "boolean"
         }
       }
+    },
+    "elements": {
+      "properties": {
+        "condition": {
+          "type": "object",
+          "enabled": false
+        }
+      }
     }
   }
 }

Reply via email to