This is an automated email from the ASF dual-hosted git repository. shuber pushed a commit to branch unomi-1.5.x in repository https://gitbox.apache.org/repos/asf/unomi.git
commit f70ec426cfec4731790dc954308b8747d0074b22 Author: Taybou <[email protected]> AuthorDate: Tue Jul 21 09:54:22 2020 +0200 UNOMI-363 add consent mapping in the profile.json (cherry picked from commit 574d57e1c4ea2ccf69164b9770b4b5f2d4e4e5bd) --- .../resources/META-INF/cxs/mappings/consent.json | 37 ---------------------- .../resources/META-INF/cxs/mappings/profile.json | 25 +++++++++++++-- 2 files changed, 22 insertions(+), 40 deletions(-) diff --git a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/consent.json b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/consent.json deleted file mode 100644 index 6d4d57d..0000000 --- a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/consent.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "dynamic_templates": [ - { - "all": { - "match": "*", - "match_mapping_type": "string", - "mapping": { - "type": "text", - "analyzer": "folding", - "fields": { - "keyword": { - "type": "keyword", - "ignore_above": 256 - } - } - } - } - } - ], - "properties": { - "scope": { - "type": "string" - }, - "typeIdentifier": { - "type": "string" - }, - "status": { - "type": "string" - }, - "statusDate": { - "type": "date" - }, - "revokeDate": { - "type": "date" - } - } -} diff --git a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json index 7732186..2911216 100644 --- a/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json +++ b/persistence-elasticsearch/core/src/main/resources/META-INF/cxs/mappings/profile.json @@ -20,8 +20,8 @@ "properties": { "properties": { "properties": { - "age" : { - "type" : "long" + "age": { + "type": "long" }, "firstVisit": { "type": "date" @@ -36,6 +36,25 @@ "type": "long" } } + }, + "consents": { + "properties": { + "scope": { + "type": "string" + }, + "typeIdentifier": { + "type": "string" + }, + "status": { + "type": "string" + }, + "statusDate": { + "type": "date" + }, + "revokeDate": { + "type": "date" + } + } } } -} \ No newline at end of file +}
