Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
webservices
cern-search
cern-search-rest-api
Commits
d28d7136
Commit
d28d7136
authored
Aug 05, 2019
by
Pablo Panero
Browse files
jsonschemas/mappings [edms]: new versions
parent
941c89a3
Changes
4
Hide whitespace changes
Inline
Side-by-side
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/document_v
2
.0.0.json
→
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/document_v
3
.0.0.json
View file @
d28d7136
{
"title"
:
"EDMS Object Type Document schema v
2
.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/document_v
2
.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/document_v
2
.0.0.json"
,
"title"
:
"EDMS Object Type Document schema v
3
.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/document_v
3
.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/document_v
3
.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"
},
...
...
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/file_v
2
.0.0.json
→
cern_search_rest_api/modules/cernsearch/jsonschemas/edms/edms/file_v
3
.0.0.json
View file @
d28d7136
{
"title"
:
"EDMS Object Type File schema v
1
.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/file_v
2
.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/file_v
2
.0.0.json"
,
"title"
:
"EDMS Object Type File schema v
3
.0.0"
,
"id"
:
"http://0.0.0.0:5000/schemas/edms/file_v
3
.0.0.json"
,
"$schema"
:
"http://0.0.0.0:5000/schemas/edms/file_v
3
.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"
},
...
...
cern_search_rest_api/modules/cernsearch/mappings/edms/v6/edms/document_v
2
.0.0.json
→
cern_search_rest_api/modules/cernsearch/mappings/edms/v6/edms/document_v
3
.0.0.json
View file @
d28d7136
...
...
@@ -4,12 +4,11 @@
"index.mapping.total_fields.limit"
:
500
},
"mappings"
:
{
"document_v
2
.0.0"
:
{
"document_v
3
.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"
:
{
...
...
cern_search_rest_api/modules/cernsearch/mappings/edms/v6/edms/file_v
2
.0.0.json
→
cern_search_rest_api/modules/cernsearch/mappings/edms/v6/edms/file_v
3
.0.0.json
View file @
d28d7136
...
...
@@ -4,12 +4,11 @@
"index.mapping.total_fields.limit"
:
500
},
"mappings"
:
{
"file_v
2
.0.0"
:
{
"file_v
3
.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"