Commit 0cc5f976 authored by Pablo Panero's avatar Pablo Panero
Browse files

datamodel [edms]: document schema version 4.0.0 based on #68

parent bc15910f
{
"title": "EDMS Object Type Document schema v4.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/document_v4.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/document_v4.0.0.json",
"type": "object",
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{
"type": "array",
"items": {
"type": "string"
}
},
"read":{
"type": "array",
"items": {
"type": "string"
}
},
"update":{
"type": "array",
"items": {
"type": "string"
}
},
"delete":{
"type": "array",
"items": {
"type": "string"
}
}
}
},
"_data": {
"type": "object",
"properties": {
"document_id": {
"type": "integer"
},
"document_id_version": {
"type": "string"
},
"cern_id": {
"type": "string"
},
"cern_id_version": {
"type": "string"
},
"external_reference": {
"type": "string"
},
"version": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"author": {
"type": "object",
"properties": {
"full_name": {
"type": "string"
},
"email": {
"type": "string"
}
}
},
"keywords": {
"type": "string"
},
"equipment_code": {
"type": "string"
}
}
},
"cid": {
"type": "integer"
},
"owner": {
"type": "string"
},
"group":{
"type": "string"
},
"object_type": {
"type": "string"
},
"parents": {
"type": "array",
"items": {
"type": "object"
}
},
"status": {
"type": "string"
},
"latest_version": {
"type": "boolean"
},
"obsolete": {
"type": "boolean"
},
"context": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"context_id": {
"type": "string"
}
}
},
"document_type": {
"type": "string"
},
"release_procedure": {
"type": "string"
},
"object_properties": {
"type": "array",
"items": {
"type": "object"
}
},
"attributes": {
"type": "array",
"items": {
"type": "string"
}
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"control_number": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
\ No newline at end of file
{
"settings": {
"index.percolator.map_unmapped_fields_as_string": true,
"index.mapping.total_fields.limit": 500
},
"mappings": {
"document_v4.0.0": {
"dynamic": "strict",
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,edms-search@cern.ch,edms-search-dev@cern.ch,en-dep-ace-plm@cern.ch"
},
"properties": {
"_access": {
"type": "object",
"properties": {
"owner":{"type": "keyword"},
"read": {"type": "keyword"},
"update": {"type": "keyword"},
"delete": {"type": "keyword"}
}
},
"_data": {
"type": "object",
"properties": {
"document_id": {
"type": "keyword",
"boost": 20
},
"document_id_version": {
"type": "keyword",
"boost": 20
},
"cern_id": {
"type": "keyword",
"boost": 20,
"fields": {
"exact_match": {
"type": "keyword",
"boost": 20
}
}
},
"cern_id_version": {
"type": "keyword",
"boost": 20
},
"external_reference": {
"type": "text",
"boost": 8,
"fields": {
"exact_match": {
"type": "keyword",
"boost": 8
}
}
},
"version": {
"type": "keyword"
},
"title": {
"type": "text",
"boost": 8,
"fields": {
"english": {
"type": "text",
"boost": 8,
"analyzer": "english"
},
"french": {
"type": "text",
"boost": 8,
"analyzer": "french"
},
"exact_match": {
"type": "keyword",
"boost": 8
}
}
},
"description": {
"type": "text",
"boost": 4,
"fields": {
"english": {
"type": "text",
"boost": 4,
"analyzer": "english"
},
"french": {
"type": "text",
"boost": 4,
"analyzer": "french"
}
}
},
"author": {
"type": "object",
"properties": {
"full_name": {
"type": "text",
"boost": 2
},
"email": {
"type": "text",
"boost": 2
}
}
},
"keywords": {
"type": "text",
"boost": 6,
"fields": {
"english": {
"type": "text",
"analyzer": "english",
"boost": 6
},
"french": {
"type": "text",
"analyzer": "french",
"boost": 6
},
"exact_match": {
"type": "keyword",
"boost": 6
}
}
},
"equipment_code": {
"type": "keyword",
"boost": 6
}
}
},
"cid": {
"type": "keyword"
},
"owner": {
"type": "keyword"
},
"group": {
"type": "keyword"
},
"object_type": {
"type": "keyword"
},
"parents": {
"type": "object",
"properties": {
"parent_type": {
"type": "keyword"
},
"parent_id": {
"type": "keyword"
}
}
},
"status": {
"type": "keyword"
},
"latest_version": {
"type": "keyword"
},
"obsolete": {
"type": "keyword"
},
"context": {
"type": "object",
"properties": {
"name": {
"type": "keyword"
},
"context_id": {
"type": "keyword"
}
}
},
"document_type": {
"type": "keyword"
},
"release_procedure": {
"type": "keyword"
},
"object_properties": {
"properties": {
"name": {
"type": "keyword"
},
"value": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
},
"exact_match": {
"type": "keyword"
}
}
}
}
},
"attributes": {
"type": "keyword"
},
"creation_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"modification_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"_updated": {
"type": "date"
},
"_created": {
"type": "date"
},
"control_number": {
"type": "keyword"
},
"$schema": {
"enabled": false
}
}
}
}
}
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment