Commit d28d7136 authored by Pablo Panero's avatar Pablo Panero
Browse files

jsonschemas/mappings [edms]: new versions

parent 941c89a3
{
"title": "EDMS Object Type Document schema v2.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/document_v2.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/document_v2.0.0.json",
"title": "EDMS Object Type Document schema v3.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/document_v3.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/document_v3.0.0.json",
"type": "object",
"properties": {
"_access": {
......@@ -48,6 +48,9 @@
"cern_id": {
"type": "string"
},
"external_reference": {
"type": "string"
},
"version": {
"type": "string"
},
......@@ -61,7 +64,15 @@
"type": "string"
},
"context": {
"type": "string"
"type": "object",
"properties": {
"name": {
"type": "string"
},
"context_id": {
"type": "string"
}
}
},
"document_type": {
"type": "string"
......@@ -76,7 +87,15 @@
"type": "boolean"
},
"author": {
"type": "string"
"type": "object",
"properties": {
"full_name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"keywords": {
"type": "string"
......@@ -89,21 +108,30 @@
"items": {
"type": "string"
}
},
"object_properties": {
"type": "array",
"items": {
"type": "object"
}
},
"parents": {
"type": "array",
"items": {
"type": "object"
}
}
}
},
"owner": {
"type": "string"
},
"group":{
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object"
}
},
"status": {
"type": "string"
},
"object_properties": {
"type": "array",
"items": {
"type": "object"
}
},
"creation_date": {
"type": "string"
},
......
{
"title": "EDMS Object Type File schema v1.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/file_v2.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/file_v2.0.0.json",
"title": "EDMS Object Type File schema v3.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/file_v3.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/file_v3.0.0.json",
"type": "object",
"properties": {
"_access": {
......@@ -43,6 +43,9 @@
"file_id": {
"type": "integer"
},
"external_reference": {
"type": "string"
},
"version": {
"type": "string"
},
......@@ -59,7 +62,15 @@
"type": "string"
},
"context": {
"type": "string"
"type": "object",
"properties": {
"name": {
"type": "string"
},
"context_id": {
"type": "string"
}
}
},
"document_type": {
"type": "string"
......@@ -67,14 +78,19 @@
"release_procedure": {
"type": "string"
},
"status": {
"type": "string"
},
"obsolete": {
"type": "boolean"
},
"author": {
"type": "string"
"type": "object",
"properties": {
"full_name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"keywords": {
"type": "string"
......@@ -88,34 +104,6 @@
"type": "string"
}
},
"object_properties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"parents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"parent_type": {
"type": "string"
},
"parent_id": {
"type": "string"
}
}
}
},
"b64": {
"type": "string",
"description": "Base64 encoded binary file."
......@@ -146,6 +134,43 @@
}
}
},
"owner": {
"type": "string"
},
"group":{
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object",
"properties": {
"parent_type": {
"type": "string"
},
"parent_id": {
"type": "string"
}
}
}
},
"status": {
"type": "string"
},
"object_properties": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
},
"creation_date": {
"type": "string"
},
......
......@@ -4,12 +4,11 @@
"index.mapping.total_fields.limit": 500
},
"mappings": {
"document_v2.0.0": {
"document_v3.0.0": {
"dynamic": "strict",
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-edm@cern.ch",
"_comment": "Fields to ignore for global search obsolete, latest_version, (version, obsolete, release_procedure, status)"
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-plm@cern.ch"
},
"properties": {
"_access": {
......@@ -34,10 +33,18 @@
"type": "keyword"
},
"cern_id": {
"type": "keyword",
"type": "text",
"fields": {
"full_text": {
"type": "text"
"exact_match": {
"type": "keyword"
}
}
},
"external_reference": {
"type": "text",
"fields": {
"exact_match": {
"type": "keyword"
}
}
},
......@@ -74,37 +81,55 @@
}
},
"context": {
"type": "keyword",
"fields": {
"full_text": {
"type": "text"
"type": "object",
"properties": {
"name": {
"type": "text",
"fields": {
"exact_match": {
"type": "keyword"
}
}
},
"context_id": {
"type": "text",
"fields": {
"exact_match": {
"type": "keyword"
}
}
}
}
},
"document_type": {
"type": "keyword",
"type": "text",
"fields": {
"full_text": {
"type": "text"
"exact_match": {
"type": "keyword"
}
}
},
"release_procedure": {
"type": "keyword",
"type": "text",
"fields": {
"full_text": {
"type": "text"
"exact_match": {
"type": "keyword"
}
}
},
"status": {
"type": "keyword"
},
"obsolete": {
"type": "keyword"
},
"author": {
"type": "text"
"type": "object",
"properties": {
"full_name": {
"type": "text"
},
"email": {
"type": "text"
}
}
},
"keywords": {
"type": "keyword",
......@@ -124,40 +149,49 @@
},
"attributes": {
"type": "keyword"
}
}
},
"owner": {
"type": "keyword"
},
"group": {
"type": "keyword"
},
"parents": {
"type": "object",
"properties": {
"parent_type": {
"type": "keyword"
},
"object_properties": {
"properties": {
"name": {
"parent_id": {
"type": "text",
"fields": {
"exact_match": {
"type": "keyword"
},
"value": {
"type": "keyword",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
}
}
}
}
},
"status": {
"type": "keyword"
},
"object_properties": {
"properties": {
"name": {
"type": "keyword"
},
"parents": {
"type": "object",
"properties": {
"parent_type": {
"type": "keyword"
"value": {
"type": "keyword",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"parent_id": {
"type": "keyword",
"fields": {
"full_text": {
"type": "text"
}
}
"french": {
"type": "text",
"analyzer": "french"
}
}
}
......@@ -171,7 +205,13 @@
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"custom_pid": {
"_updated": {
"type": "date"
},
"_created": {
"type": "date"
},
"control_number": {
"type": "keyword"
},
"$schema": {
......
......@@ -4,12 +4,11 @@
"index.mapping.total_fields.limit": 500
},
"mappings": {
"file_v2.0.0": {
"file_v3.0.0": {
"dynamic": "strict",
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-edm@cern.ch",
"_comment": "Fields to ignore for global search obsolete, latest_version, (version, obsolete, release_procedure, status )"
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-plm@cern.ch"
},
"properties": {
"_access": {
......@@ -34,16 +33,24 @@
"type": "keyword"
},
"cern_id": {
"type": "keyword",
"type": "text",
"fields": {
"full_text": {
"type": "text"
"exact_match": {
"type": "keyword"
}
}
},
"file_id": {
"enabled": false
},
"external_reference": {
"type": "text",
"fields": {
"exact_match": {
"type": "keyword"
}
}
},
"version": {
"type": "keyword"
},
......@@ -90,37 +97,55 @@
}
},
"context": {
"type": "keyword",
"fields": {
"full_text": {
"type": "text"
"type": "object",
"properties": {
"name": {
"type": "text",
"fields": {
"exact_match": {
"type": "keyword"
}
}
},
"context_id": {
"type": "text",
"fields": {
"exact_match": {
"type": "keyword"
}
}
}
}
},
"document_type": {
"type": "keyword",
"type": "text",
"fields": {
"full_text": {
"type": "text"
"exact_match": {
"type": "keyword"
}
}
},
"release_procedure": {
"type": "keyword",
"type": "text",
"fields": {
"full_text": {
"type": "text"
"exact_match": {
"type": "keyword"
}
}
},
"status": {
"type": "keyword"
},
"obsolete": {
"type": "keyword"
},
"author": {
"type": "text"
"type": "object",
"properties": {
"full_name": {
"type": "text"
},
"email": {
"type": "text"
}
}
},
"keywords": {
"type": "keyword",
......@@ -141,42 +166,6 @@
"attributes": {
"type": "keyword"
},
"object_properties": {
"properties": {
"name": {
"type": "keyword"
},
"value": {
"type": "keyword",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
}
}
},
"parents": {
"type": "object",
"properties": {
"parent_type": {
"type": "keyword"
},
"parent_id": {
"type": "keyword",
"fields": {
"full_text": {
"type": "text"