initial stage
This commit is contained in:
parent
f89898e99b
commit
09b603925d
|
@ -46,7 +46,7 @@ def trasform_interoperability(p: dict) -> dict:
|
||||||
if 'domain' in p:
|
if 'domain' in p:
|
||||||
p['domain'] = {"domain": p['domain']}
|
p['domain'] = {"domain": p['domain']}
|
||||||
p['licenseDetails'] = p['license']
|
p['licenseDetails'] = p['license']
|
||||||
p['license'] = p['license']['title'] if 'title' in p['license'] else ''
|
p['license'] = p['license']['identifier'] if 'identifier' in p['license'] else ''
|
||||||
return p
|
return p
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -833,9 +833,72 @@ mappings['services'] = {
|
||||||
|
|
||||||
mappings['interoperability'] = {
|
mappings['interoperability'] = {
|
||||||
"properties": {
|
"properties": {
|
||||||
|
"alternativeIdentifiers": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"alternativeIdentifier": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"type": {
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
|
"value": {
|
||||||
|
"type": "keyword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"creators": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"affiliation": {
|
||||||
|
"fields": {
|
||||||
|
"keyword": {
|
||||||
|
"type": "keyword",
|
||||||
|
"ignore_above": 256
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"familyName": {
|
||||||
|
"fields": {
|
||||||
|
"keyword": {
|
||||||
|
"type": "keyword",
|
||||||
|
"ignore_above": 256
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"fullName": {
|
||||||
|
"fields": {
|
||||||
|
"keyword": {
|
||||||
|
"type": "keyword",
|
||||||
|
"ignore_above": 256
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"givenName": {
|
||||||
|
"fields": {
|
||||||
|
"keyword": {
|
||||||
|
"type": "keyword",
|
||||||
|
"ignore_above": 256
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"type": {
|
||||||
|
"type": "keyword"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"description": {
|
"description": {
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
"doi": {
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
"domain": {
|
"domain": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"properties": {
|
"properties": {
|
||||||
|
@ -856,6 +919,20 @@ mappings['interoperability'] = {
|
||||||
"license": {
|
"license": {
|
||||||
"type": "keyword"
|
"type": "keyword"
|
||||||
},
|
},
|
||||||
|
"licenseDetails": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"identifier": {
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
|
"title": {
|
||||||
|
"type": "text"
|
||||||
|
},
|
||||||
|
"uri": {
|
||||||
|
"type": "text"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
"organization": {
|
"organization": {
|
||||||
"fields": {
|
"fields": {
|
||||||
"keyword": {
|
"keyword": {
|
||||||
|
@ -865,6 +942,19 @@ mappings['interoperability'] = {
|
||||||
},
|
},
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
"provider": {
|
||||||
|
"fields": {
|
||||||
|
"keyword": {
|
||||||
|
"type": "keyword",
|
||||||
|
"ignore_above": 256
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
|
"providers": {
|
||||||
|
"path": "provider",
|
||||||
|
"type": "alias"
|
||||||
|
},
|
||||||
"publicationYear": {
|
"publicationYear": {
|
||||||
"type": "long"
|
"type": "long"
|
||||||
},
|
},
|
||||||
|
@ -879,6 +969,9 @@ mappings['interoperability'] = {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"status": {
|
||||||
|
"type": "keyword"
|
||||||
|
},
|
||||||
"title": {
|
"title": {
|
||||||
"type": "text"
|
"type": "text"
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue