You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@unomi.apache.org by sh...@apache.org on 2021/01/06 07:58:45 UTC
[unomi] branch master updated: UNOMI-410 : add patch template (#231)
This is an automated email from the ASF dual-hosted git repository.
shuber 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 3f4bde8 UNOMI-410 : add patch template (#231)
3f4bde8 is described below
commit 3f4bde8821ef8bd62bc838b07123433e54a5aa5a
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"
+ }
+ }
+}