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

[SEARCH-102] EDMS schemas update

parent 3d284e5f
...@@ -6,11 +6,21 @@ ...@@ -6,11 +6,21 @@
"_data.*" "_data.*"
], ],
"analysis": { "analysis": {
"analyzer": {
"case_accent_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase",
"asciifolding"
]
}
},
"normalizer": { "normalizer": {
"lowercase_normalizer": { "case_accent_normalizer": {
"type": "custom", "type": "custom",
"filter": [ "filter": [
"lowercase" "lowercase",
"asciifolding"
] ]
} }
} }
...@@ -42,41 +52,43 @@ ...@@ -42,41 +52,43 @@
"properties": { "properties": {
"document_id": { "document_id": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 2
}, },
"document_id_version": { "document_id_version": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 2
}, },
"cern_id": { "cern_id": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 2
}, },
"cern_id_version": { "cern_id_version": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 2
}, },
"external_reference": { "external_reference": {
"type": "text", "type": "text",
"analyzer": "case_accent_analyzer",
"boost": 1.5, "boost": 1.5,
"fields": { "fields": {
"exact_match": { "exact_match": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 1.5 "boost": 1.5
} }
} }
}, },
"version": { "version": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"title": { "title": {
"type": "text", "type": "text",
"analyzer": "case_accent_analyzer",
"boost": 1.5, "boost": 1.5,
"fields": { "fields": {
"english": { "english": {
...@@ -91,13 +103,14 @@ ...@@ -91,13 +103,14 @@
}, },
"exact_match": { "exact_match": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 1.5 "boost": 1.5
} }
} }
}, },
"description": { "description": {
"type": "text", "type": "text",
"analyzer": "case_accent_analyzer",
"boost": 1.25, "boost": 1.25,
"fields": { "fields": {
"english": { "english": {
...@@ -117,16 +130,19 @@ ...@@ -117,16 +130,19 @@
"properties": { "properties": {
"full_name": { "full_name": {
"type": "text", "type": "text",
"analyzer": "case_accent_analyzer",
"boost": 1.2 "boost": 1.2
}, },
"email": { "email": {
"type": "text", "type": "text",
"analyzer": "case_accent_analyzer",
"boost": 1.2 "boost": 1.2
} }
} }
}, },
"keywords": { "keywords": {
"type": "text", "type": "text",
"analyzer": "case_accent_analyzer",
"boost": 1.4, "boost": 1.4,
"fields": { "fields": {
"english": { "english": {
...@@ -141,88 +157,89 @@ ...@@ -141,88 +157,89 @@
}, },
"exact_match": { "exact_match": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 1.4 "boost": 1.4
} }
} }
}, },
"equipment_code": { "equipment_code": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 1.4 "boost": 1.4
} }
} }
}, },
"cid": { "cid": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"owner": { "owner": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"group": { "group": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"object_type": { "object_type": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"parents": { "parents": {
"type": "object", "type": "object",
"properties": { "properties": {
"parent_type": { "parent_type": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"parent_id": { "parent_id": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
} }
} }
}, },
"status": { "status": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"latest_version": { "latest_version": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"obsolete": { "obsolete": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"context": { "context": {
"type": "object", "type": "object",
"properties": { "properties": {
"name": { "name": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"context_id": { "context_id": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
} }
} }
}, },
"document_type": { "document_type": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"release_procedure": { "release_procedure": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"object_properties": { "object_properties": {
"properties": { "properties": {
"name": { "name": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"value": { "value": {
"type": "text", "type": "text",
"analyzer": "case_accent_analyzer",
"fields": { "fields": {
"english": { "english": {
"type": "text", "type": "text",
...@@ -234,7 +251,7 @@ ...@@ -234,7 +251,7 @@
}, },
"exact_match": { "exact_match": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
} }
} }
} }
...@@ -242,7 +259,7 @@ ...@@ -242,7 +259,7 @@
}, },
"attributes": { "attributes": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"creation_date": { "creation_date": {
"type": "date", "type": "date",
......
...@@ -6,11 +6,21 @@ ...@@ -6,11 +6,21 @@
"_data.*" "_data.*"
], ],
"analysis": { "analysis": {
"analyzer": {
"case_accent_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase",
"asciifolding"
]
}
},
"normalizer": { "normalizer": {
"lowercase_normalizer": { "case_accent_normalizer": {
"type": "custom", "type": "custom",
"filter": [ "filter": [
"lowercase" "lowercase",
"asciifolding"
] ]
} }
} }
...@@ -41,92 +51,96 @@ ...@@ -41,92 +51,96 @@
"properties": { "properties": {
"content": { "content": {
"type": "text", "type": "text",
"boost": 2 "analyzer": "case_accent_analyzer"
}, },
"file_name": { "file_name": {
"type": "text", "type": "text",
"boost": 2, "analyzer": "case_accent_analyzer",
"boost": 1.5,
"fields": { "fields": {
"english": { "english": {
"type": "text", "type": "text",
"analyzer": "english", "analyzer": "english",
"boost": 2 "boost": 1.5
}, },
"french": { "french": {
"type": "text", "type": "text",
"analyzer": "french", "analyzer": "french",
"boost": 2 "boost": 1.5
} }
} }
}, },
"document_id": { "document_id": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 1.9
}, },
"document_id_version": { "document_id_version": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 1.9
}, },
"cern_id": { "cern_id": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 1.9
}, },
"cern_id_version": { "cern_id_version": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 2 "boost": 1.9
}, },
"external_reference": { "external_reference": {
"type": "text", "type": "text",
"boost": 1.5, "boost": 1.4,
"analyzer": "case_accent_analyzer",
"fields": { "fields": {
"exact_match": { "exact_match": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 1.5 "boost": 1.4
} }
} }
}, },
"version": { "version": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer" "normalizer": "case_accent_normalizer"
}, },
"title": { "title": {
"type": "text", "type": "text",
"boost": 1.5, "analyzer": "case_accent_analyzer",
"boost": 1.4,
"fields": { "fields": {
"english": { "english": {
"type": "text", "type": "text",
"boost": 1.5, "boost": 1.4,
"analyzer": "english" "analyzer": "english"
}, },
"french": { "french": {
"type": "text", "type": "text",
"boost": 1.5, "boost": 1.4,
"analyzer": "french" "analyzer": "french"
}, },
"exact_match": { "exact_match": {
"type": "keyword", "type": "keyword",
"normalizer": "lowercase_normalizer", "normalizer": "case_accent_normalizer",
"boost": 1.5 "boost": 1.4
} }
} }
}, },
"description": { "description": {
"type": "text", "type": "text",
"boost": 1.25, "analyzer": "case_accent_analyzer",
"boost": 1.2,
"fields": { "fields": {
"english": { "english": {
"type": "text", "type": "text",
"boost": 1.25, "boost": 1.2,
"analyzer": "english" "analyzer": "english"
}, },
"french": { "french": {
"type": "text", "type": "text",
"boost": 1.25, "boost": 1.2,
"analyzer": "french" "analyzer": "french"
} }
} }
...@@ -136,116 +150,120 @@ ...@@ -136,116 +150,120 @@
"properties": { "properties": {
"full_name": { "full_name": {
"type": "text", "type": "text",
"boost": 1.2 "analyzer": "case_accent_analyzer",
"boost": 1.15
}, },
"email": { "email": {
"type": "text", "type": "text",
"boost": 1.2 "analyzer": "case_accent_analyzer",
"boost":