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

Add document_v1.0.0 schema from EDMS

parent 1fb06b4c
{
"title": "EDMS Object Type Document schema v1.0.0",
"id": "http://0.0.0.0:5000/schemas/cernsearch-edms/document_v1.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/cernsearch-edms/document_v1.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"
}
}
}
},
"object_type": {
"type": "string"
},
"cid": {
"type": "integer"
},
"id": {
"type": "integer"
},
"cern_id": {
"type": "string"
},
"version": {
"type": "string"
},
"latest_version": {
"type": "boolean"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"context": {
"type": "string"
},
"document_type": {
"type": "string"
},
"release_procedure": {
"type": "string"
},
"status": {
"type": "string"
},
"obsolete": {
"type": "boolean"
},
"author": {
"type": "string"
},
"keywords": {
"type": "string"
},
"equipment_code": {
"type": "string"
},
"attributes": {
"type": "array",
"items": {
"type": "string"
}
},
"properties": {
"type": "array",
"items": {
"type": "object"
}
},
"parents": {
"type": "array",
"items": {
"type": "object"
}
},
"custom_pid": {
"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": 100
},
"mappings": {
"document_v1.0.0": {
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-edm@cern.ch"
},
"properties": {
"_access": {
"type": "nested",
"properties": {
"owner":{
"type": "keyword"
},
"read": {
"type": "keyword"
},
"update": {
"type": "keyword"
},
"delete": {
"type": "keyword"
}
}
},
"object_type": {
"type": "keyword"
},
"cid": {
"type": "keyword"
},
"id": {
"type": "keyword"
},
"cern_id": {
"type": "keyword"
},
"version": {
"type": "keyword"
},
"latest_version": {
"type": "keyword"
},
"title": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"description": {
"type": "text",
"fields": {
"english": {
"type": "text",
"analyzer": "english"
},
"french": {
"type": "text",
"analyzer": "french"
}
}
},
"creation_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"modification_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"context": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"document_type": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"release_procedure": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
},
"status": {
"type": "keyword"
},
"obsolete": {
"type": "keyword"
},
"author": {
"type": "text"
},
"keywords": {
"type": "text"
},
"equipment_code": {
"type": "text"
},
"attributes": {
"type": "keyword"
},
"properties": {
"properties": {
"name": {
"type": "keyword"
},
"value": {
"type": "text"
}
}
},
"parents": {
"type": "nested",
"properties": {
"type": {
"type": "keyword"
},
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword"
}
}
}
}
},
"custom_pid": {
"type": "keyword"
},
"$schema": {
"type": "keyword"
}
}
}
}
}
\ 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