Commit c86265c9 authored by Carina Antunes's avatar Carina Antunes
Browse files

[83] Mappings: add edms objects

parent 1b65e984
{
"title": "EDMS Object Type InforEAMObject schema v1.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/inforeamobject.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/inforeamobject_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"
}
}
}
},
"_data": {
"type": "object",
"properties": {
"code": {
"type": "string"
},
"other_id": {
"type": "string"
},
"class": {
"type": "string"
},
"description": {
"type": "string"
},
"status": {
"type": "string"
},
"manufacturer": {
"type": "string"
},
"location": {
"type": "string"
}
}
},
"object_type": {
"type": "string"
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"control_number": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
{
"title": "EDMS Object Type Item schema v1.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/item_v1.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/item_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"
}
}
}
},
"_data": {
"type": "object",
"properties": {
"item_id": {
"type": "string"
},
"version": {
"type": "string"
},
"item_id_version": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"equipment_code": {
"type": "string"
},
"context": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"context_id": {
"type": "string"
}
}
}
}
},
"cid": {
"type": "integer"
},
"owner": {
"type": "string"
},
"group": {
"type": "string"
},
"object_type": {
"type": "string"
},
"status": {
"type": "string"
},
"latest_version": {
"type": "boolean"
},
"obsolete": {
"type": "boolean"
},
"release_procedure": {
"type": "string"
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"control_number": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
{
"title": "EDMS Object Type Project schema v1.0.0",
"id": "http://0.0.0.0:5000/schemas/edms/project_v1.0.0.json",
"$schema": "http://0.0.0.0:5000/schemas/edms/project_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"
}
}
}
},
"_data": {
"type": "object",
"properties": {
"project_id": {
"type": "string"
},
"name": {
"type": "string"
},
"description": {
"type": "string"
},
"context": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"context_id": {
"type": "string"
}
}
},
"responsible": {
"type": "string"
},
"equipment_code": {
"type": "string"
}
}
},
"cid": {
"type": "integer"
},
"owner": {
"type": "string"
},
"group": {
"type": "string"
},
"object_type": {
"type": "string"
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"control_number": {
"type": "string"
},
"$schema": {
"type": "string"
}
}
}
......@@ -7,9 +7,6 @@
"document_v3.0.0": {
"dynamic": "strict",
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-plm@cern.ch"
},
"properties": {
"_access": {
"type": "object",
......@@ -220,4 +217,4 @@
}
}
}
}
\ No newline at end of file
}
......@@ -7,9 +7,6 @@
"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",
......@@ -231,4 +228,4 @@
}
}
}
}
\ No newline at end of file
}
......@@ -7,9 +7,6 @@
"file_v3.0.0": {
"dynamic": "strict",
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-plm@cern.ch"
},
"properties": {
"_access": {
"type": "object",
......@@ -294,4 +291,4 @@
}
}
}
}
\ No newline at end of file
}
{
"settings": {
"index.percolator.map_unmapped_fields_as_string": true,
"index.mapping.total_fields.limit": 500
},
"mappings": {
"inforeamobject_v1.0.0": {
"numeric_detection": true,
"properties": {
"_access": {
"type": "object",
"properties": {
"owner": {
"type": "keyword"
},
"read": {
"type": "keyword"
},
"update": {
"type": "keyword"
},
"delete": {
"type": "keyword"
}
}
},
"_data": {
"type": "object",
"properties": {
"code": {
"type": "keyword",
"boost": 20
},
"other_id": {
"type": "keyword",
"boost": 20
},
"class": {
"type": "keyword",
"boost": 10
},
"description": {
"type": "text",
"boost": 4,
"fields": {
"english": {
"type": "text",
"boost": 4,
"analyzer": "english"
},
"french": {
"type": "text",
"boost": 4,
"analyzer": "french"
}
}
},
"status": {
"type": "keyword"
},
"manufacturer": {
"type": "keyword"
},
"location": {
"type": "keyword"
}
}
},
"object_type": {
"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
}
}
}
}
}
{
"settings": {
"index.percolator.map_unmapped_fields_as_string": true,
"index.mapping.total_fields.limit": 500
},
"mappings": {
"item_v1.0.0": {
"numeric_detection": true,
"properties": {
"_access": {
"type": "object",
"properties": {
"owner": {
"type": "keyword"
},
"read": {
"type": "keyword"
},
"update": {
"type": "keyword"
},
"delete": {
"type": "keyword"
}
}
},
"_data": {
"type": "object",
"properties": {
"item_id": {
"type": "keyword",
"boost": 20
},
"version": {
"type": "keyword",
"boost": 1
},
"item_id_version": {
"type": "keyword",
"boost": 20
},
"name": {
"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"
}
}
},
"equipment_code": {
"type": "keyword",
"boost": 10
},
"context": {
"type": "object",
"properties": {
"name": {
"type": "keyword"
},
"context_id": {
"type": "keyword"
}
}
}
}
},
"cid": {
"type": "keyword"
},
"owner": {
"type": "keyword"
},
"group": {
"type": "keyword"
},
"object_type": {
"type": "keyword"
},
"status": {
"type": "keyword"
},
"latest_version": {
"type": "keyword"
},
"obsolete": {
"type": "keyword"
},
"release_procedure": {
"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
}
}
}
}
}