changed the schema for the date element. added year as possible provided date. Now date fields have type year || date_optional_time

This commit is contained in:
Miriam Baglioni 2019-10-23 16:14:46 +03:00
parent fc43b5a85d
commit eaa3992227
1 changed files with 403 additions and 232 deletions

View File

@ -4,51 +4,87 @@
"properties" : {
"aatSubjects" : {
"properties" : {
"id": {"type": "text"},
"label": {"type": "text"},
"lang": {"type": "text"}
"id" : {
"type" : "text"
},
"label" : {
"type" : "text"
},
"lang" : {
"type" : "text"
}
}
},
"accessPolicy": {"type": "text"},
"accessRights": {"type": "text"},
"accrualPeriodicity": {"type": "text"},
"accessPolicy" : {
"type" : "text"
},
"accessRights" : {
"type" : "text"
},
"accrualPeriodicity" : {
"type" : "text"
},
"archaeologicalResourceType" : {
"properties" : {
"id": {"type": "long"},
"id" : {
"type" : "long"
},
"name" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
}
}
},
"audience": {"type": "text"},
"contactPoint": {"type": "text"},
"audience" : {
"type" : "text"
},
"contactPoint" : {
"type" : "text"
},
"contributor" : {
"properties" : {
"email": {"type": "text"},
"email" : {
"type" : "text"
},
"name" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"phone": {"type": "text"},
"type": {"type": "text"}
"phone" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"creator" : {
"properties" : {
"email": {"type": "text"},
"email" : {
"type" : "text"
},
"name" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"phone": {"type": "text"},
"type": {"type": "text"}
"phone" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"derivedSubject" : {
@ -56,158 +92,288 @@
"prefLabel" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"source" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
}
}
},
"description": {"type": "text"},
"description" : {
"type" : "text"
},
"distribution" : {
"properties" : {
"accessURL": {"type": "text"},
"description": {"type": "text"},
"accessURL" : {
"type" : "text"
},
"description" : {
"type" : "text"
},
"issued" : {
"type" : "date",
"format": "date_optional_time"
"format" : "year || date_optional_time"
},
"modified" : {
"type" : "date",
"format": "date_optional_time"
"format" : "year || date_optional_time"
},
"publisher" : {
"properties" : {
"email": {"type": "text"},
"name": {"type": "text"},
"type": {"type": "text"}
"email" : {
"type" : "text"
},
"name" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"title": {"type": "text"}
"title" : {
"type" : "text"
}
}
},
"extent": {"type": "text"},
"extent" : {
"type" : "text"
},
"hasItemMetadataStructure" : {
"properties" : {
"characterSet": {"type": "text"}
"characterSet" : {
"type" : "text"
}
}
},
"hasMetadataRecord" : {
"properties" : {
"conformsTo" : {
"properties" : {
"characterSet": {"type": "text"},
"description": {"type": "text"}
"characterSet" : {
"type" : "text"
},
"description" : {
"type" : "text"
}
}
},
"xmlDoc": {"type": "text"}
"xmlDoc" : {
"type" : "text"
}
}
},
"identifier": {"type": "keyword"},
"isPartOf": {"type": "text"},
"identifier" : {
"type" : "keyword"
},
"isPartOf" : {
"type" : "text"
},
"issued" : {
"type" : "date",
"format": "date_optional_time"
"format" : "year || date_optional_time"
},
"keyword" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"landingPage": {"type": "text"},
"language": {"type": "text"},
"landingPage" : {
"type" : "text"
},
"language" : {
"type" : "text"
},
"legalResponsible" : {
"properties" : {
"email": {"type": "text"},
"name": {"type": "text"},
"phone": {"type": "text"},
"type": {"type": "text"}
"email" : {
"type" : "text"
},
"name" : {
"type" : "text"
},
"phone" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"modified" : {
"type" : "date",
"format": "date_optional_time"
"format" : "year || date_optional_time"
},
"nativeSubject" : {
"properties" : {
"prefLabel" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"rdfAbout" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
},
"rdfAbout": {"type": "text"},
"originalId": {"type": "text"},
"originalId" : {
"type" : "text"
},
"owner" : {
"properties" : {
"email": {"type": "text"},
"email" : {
"type" : "text"
},
"name" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"phone": {"type": "text"},
"type": {"type": "text"}
"phone" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"packageId": {"type": "text"},
"providerId": {"type": "text"},
"publisher": {
"properties": {
"email": {"type": "text"},
"name": {
"type": "text",
"fields": {
"raw": {"type": "keyword"}
}
},
"phone": {"type": "text"},
"type": {"type": "text"}
}
},
"resourceType": {"type": "text"},
"rights": {"type": "text"},
"scientificResponsible": {
"properties": {
"email": {"type": "text"},
"name": {"type": "text"},
"phone": {"type": "text"},
"type": {"type": "text"}
}
},
"spatial": {
"properties": {
"address": {"type": "text"},
"boundingBoxMaxLat": {"type": "text"},
"boundingBoxMaxLon": {"type": "text"},
"boundingBoxMinLat": {"type": "text"},
"boundingBoxMinLon": {"type": "text"},
"coordinateSystem": {"type": "text"},
"country": {"type": "text"},
"location": {"type": "geo_point"}
}
"packageId" : {
"type" : "text"
},
"placeName" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"postcode" : {
"type" : "text"
},
"providerId" : {
"type" : "text"
},
"publisher" : {
"properties" : {
"email" : {
"type" : "text"
},
"name" : {
"type" : "text",
"fields" : {
"raw" : {
"type" : "keyword"
}
}
},
"phone" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"rdfAbout" : {
"type" : "text"
},
"resourceType" : {
"type" : "text"
},
"rights" : {
"type" : "text"
},
"scientificResponsible" : {
"properties" : {
"email" : {
"type" : "text"
},
"name" : {
"type" : "text"
},
"phone" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"spatial" : {
"properties" : {
"address" : {
"type" : "text"
},
"boundingBoxMaxLat" : {
"type" : "text"
},
"boundingBoxMaxLon" : {
"type" : "text"
},
"boundingBoxMinLat" : {
"type" : "text"
},
"boundingBoxMinLon" : {
"type" : "text"
},
"coordinateSystem" : {
"type" : "text"
},
"country" : {
"type" : "text"
},
"location" : {
"type" : "geo_point"
},
"placeName" : {
"type" : "text",
"fields" : {
"keyword" : {
"type" : "keyword",
"ignore_above" : 256
}
}
}
}
},
"postcode": {"type": "text"},
"technicalResponsible" : {
"properties" : {
"email": {"type": "text"},
"name": {"type": "text"},
"phone": {"type": "text"},
"type": {"type": "text"}
"email" : {
"type" : "text"
},
"name" : {
"type" : "text"
},
"phone" : {
"type" : "text"
},
"type" : {
"type" : "text"
}
}
},
"temporal" : {
@ -215,23 +381,28 @@
"properties" : {
"from" : {
"type" : "date",
"format": "date_optional_time"
"format" : "year || date_optional_time"
},
"periodName" : {
"type" : "text",
"fields" : {
"raw": {"type": "keyword"}
"raw" : {
"type" : "keyword"
}
}
},
"until" : {
"type" : "date",
"format": "date_optional_time"
"format" : "year || date_optional_time"
},
"uri": {"type": "text"}
"uri" : {
"type" : "text"
}
}
},
"title": {"type": "text"}
}
"title" : {
"type" : "text"
}
}
}
} }