Commit 3aa63994 authored by Pablo Panero's avatar Pablo Panero
Browse files

jsonschemas/mappings[edms]: move date fields outside of _data to allow search...

jsonschemas/mappings[edms]: move date fields outside of _data to allow search and make mappings strict
parent f7dcfbfd
......@@ -60,12 +60,6 @@
"description": {
"type": "string"
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"context": {
"type": "string"
},
......@@ -110,6 +104,12 @@
}
}
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"control_number": {
"type": "string"
},
......
......@@ -58,12 +58,6 @@
"description": {
"type": "string"
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"context": {
"type": "string"
},
......@@ -152,6 +146,12 @@
}
}
},
"creation_date": {
"type": "string"
},
"modification_date": {
"type": "string"
},
"control_number": {
"type": "string"
},
......
......@@ -5,6 +5,7 @@
},
"mappings": {
"document_v2.0.0": {
"dynamic": "strict",
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-edm@cern.ch",
......@@ -72,14 +73,6 @@
}
}
},
"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": "keyword",
"fields": {
......@@ -170,6 +163,14 @@
}
}
},
"creation_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"modification_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"custom_pid": {
"type": "keyword"
},
......
......@@ -5,6 +5,7 @@
},
"mappings": {
"file_v2.0.0": {
"dynamic": "strict",
"numeric_detection": true,
"_meta": {
"_owner": "CernSearch-Administrators@cern.ch,en-dep-ace-edm@cern.ch",
......@@ -88,14 +89,6 @@
}
}
},
"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": "keyword",
"fields": {
......@@ -244,6 +237,14 @@
}
}
},
"creation_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"modification_date": {
"type": "date",
"format": "yyyy-MM-dd'T'HH:mm:ss"
},
"control_number": {
"type": "keyword"
},
......
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