Skip to content

Instantly share code, notes, and snippets.

@slint
Created July 17, 2018 13:43
Show Gist options
  • Save slint/7504a2daaeba025c5ff8af09e8e2aaad to your computer and use it in GitHub Desktop.
Save slint/7504a2daaeba025c5ff8af09e8e2aaad to your computer and use it in GitHub Desktop.
{
"date_detection": false,
"numeric_detection": false,
"properties": {
"$schema": {
"type": "string",
"index": "not_analyzed"
},
"grants": {
"type": "object",
"properties": {
"$schema": {
"type": "string",
"index": "not_analyzed"
},
"internal_id": {
"type": "string",
"index": "not_analyzed"
},
"code": {
"type": "string",
"index": "not_analyzed"
},
"title": {
"type": "string"
},
"version": {
"type": "string"
},
"language": {
"type": "string"
},
"acronym": {
"type": "string"
},
"startdate": {
"type": "date",
"ignore_malformed": true
},
"enddate": {
"type": "date",
"ignore_malformed": true
},
"funder": {
"type": "object",
"properties": {
"doi": {
"type": "string",
"index": "not_analyzed"
},
"identifiers": {
"type": "object",
"properties": {
"oaf": {
"type": "string",
"index": "not_analyzed"
}
}
},
"name": {
"type": "string"
},
"acronyms": {
"type": "string"
},
"country": {
"type": "string",
"index": "not_analyzed"
},
"type": {
"type": "string",
"index": "not_analyzed"
},
"subtype": {
"type": "string",
"index": "not_analyzed"
},
"remote_created": {
"type": "date"
},
"remote_modified": {
"type": "date"
}
}
},
"program": {
"type": "string"
},
"remote_modified": {
"type": "date",
"ignore_malformed": true
},
"url": {
"type": "string"
},
"identifiers": {
"type": "object",
"properties": {
"oai_id": {
"type": "string",
"index": "not_analyzed"
},
"purl": {
"type": "string",
"index": "not_analyzed"
},
"eurepo": {
"type": "string",
"index": "not_analyzed"
}
}
},
"suggest": {
"type": "completion",
"analyzer": "simple",
"search_analyzer": "simple",
"payloads": true,
"context": {
"funder": {
"type": "category",
"path": "funder.doi",
"default": ""
}
}
}
}
},
"recid": {
"type": "long"
},
"conceptrecid": {
"type": "string",
"index": "not_analyzed"
},
"conceptdoi": {
"type": "string",
"index": "not_analyzed"
},
"doi": {
"type": "string",
"index": "not_analyzed"
},
"isbn": {
"type": "string",
"index": "not_analyzed"
},
"resource_type": {
"type": "object",
"properties": {
"type": {
"type": "string",
"index": "not_analyzed",
"copy_to": "type"
},
"subtype": {
"type": "string",
"index": "not_analyzed",
"copy_to": "type"
}
}
},
"relations": {
"type": "object",
"properties": {
"version": {
"type": "object",
"properties": {
"parent": {
"type": "object",
"properties": {
"pid_type": {
"type": "string"
},
"pid_value": {
"type": "string",
"index": "not_analyzed"
}
}
},
"last_child": {
"type": "object",
"properties": {
"pid_type": {
"type": "string"
},
"pid_value": {
"type": "string",
"index": "not_analyzed"
}
}
},
"draft_child_deposit": {
"type": "object",
"properties": {
"pid_type": {
"type": "string"
},
"pid_value": {
"type": "string",
"index": "not_analyzed"
}
}
},
"count": {
"type": "integer"
},
"index": {
"type": "integer"
},
"is_last": {
"type": "boolean"
}
}
}
}
},
"_deposit": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"created_by": {
"type": "integer"
},
"owners": {
"type": "integer"
}
}
},
"type": {
"type": "string",
"index": "not_analyzed"
},
"publication_date": {
"type": "date",
"copy_to": "publicationdate"
},
"publicationdate": {
"type": "date"
},
"title": {
"type": "string"
},
"creators": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"affiliation": {
"type": "string"
},
"familyname": {
"type": "string"
},
"givennames": {
"type": "string"
},
"gnd": {
"type": "string",
"index": "not_analyzed"
},
"orcid": {
"type": "string",
"index": "not_analyzed"
}
}
},
"description": {
"type": "string"
},
"keywords": {
"type": "string"
},
"subjects": {
"type": "nested",
"properties": {
"term": {
"type": "string",
"copy_to": "subject.term"
},
"identifier": {
"type": "string",
"index": "not_analyzed",
"copy_to": "subject.identifier"
},
"scheme": {
"type": "string",
"index": "not_analyzed"
}
}
},
"subject": {
"type": "object",
"properties": {
"term": {
"type": "string"
},
"identifier": {
"type": "string",
"index": "not_analyzed"
}
}
},
"notes": {
"type": "string"
},
"language": {
"type": "string",
"index": "not_analyzed"
},
"access_right": {
"type": "string",
"index": "not_analyzed",
"copy_to": "accessrights"
},
"accessrights": {
"type": "string",
"index": "not_analyzed"
},
"embargo_date": {
"type": "date",
"copy_to": "embargodate"
},
"embargodate": {
"type": "date"
},
"access_conditions": {
"type": "string"
},
"license": {
"properties": {
"identifier": {
"type": "string",
"index": "not_analyzed"
},
"license": {
"type": "string",
"index": "not_analyzed"
},
"source": {
"type": "string",
"index": "not_analyzed"
},
"url": {
"type": "string",
"index": "not_analyzed"
}
},
"type": "object"
},
"communities": {
"type": "string",
"index": "not_analyzed"
},
"provisional_communities": {
"type": "string",
"index": "not_analyzed"
},
"related_identifiers": {
"type": "nested",
"properties": {
"identifier": {
"type": "string",
"index": "not_analyzed",
"copy_to": "related.identifier"
},
"scheme": {
"type": "string",
"index": "not_analyzed",
"copy_to": "related.scheme"
},
"relation": {
"type": "string",
"index": "not_analyzed"
}
}
},
"related": {
"type": "object",
"properties": {
"identifier": {
"type": "string",
"index": "not_analyzed"
},
"scheme": {
"type": "string",
"index": "not_analyzed"
}
}
},
"alternate_identifiers": {
"type": "nested",
"properties": {
"identifier": {
"type": "string",
"index": "not_analyzed",
"copy_to": "alternate.identifier"
},
"scheme": {
"type": "string",
"index": "not_analyzed",
"copy_to": "alternate.scheme"
}
}
},
"alternate": {
"type": "object",
"properties": {
"identifier": {
"type": "string",
"index": "not_analyzed"
},
"scheme": {
"type": "string",
"index": "not_analyzed"
}
}
},
"contributors": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"type": {
"type": "string",
"index": "not_analyzed"
},
"affiliation": {
"type": "string"
},
"familyname": {
"type": "string"
},
"givennames": {
"type": "string"
},
"gnd": {
"type": "string",
"index": "not_analyzed"
},
"orcid": {
"type": "string",
"index": "not_analyzed"
}
}
},
"references": {
"properties": {
"raw_reference": {
"type": "string"
}
},
"type": "object"
},
"journal": {
"type": "object",
"properties": {
"issue": {
"type": "string"
},
"title": {
"type": "string"
},
"pages": {
"type": "string"
},
"volume": {
"type": "string"
},
"year": {
"type": "string"
}
}
},
"meeting": {
"properties": {
"dates": {
"type": "string"
},
"title": {
"type": "string"
},
"place": {
"type": "string"
},
"session": {
"type": "string",
"index": "not_analyzed"
},
"session_part": {
"type": "string",
"index": "not_analyzed"
},
"acronym": {
"type": "string",
"index": "not_analyzed"
},
"url": {
"type": "string",
"index": "not_analyzed"
}
},
"type": "object"
},
"part_of": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"pages": {
"type": "string"
}
}
},
"imprint": {
"properties": {
"publisher": {
"type": "string"
},
"place": {
"type": "string"
},
"isbn": {
"type": "string"
}
}
},
"thesis": {
"type": "nested",
"properties": {
"university": {
"type": "string"
},
"supervisors": {
"type": "nested",
"properties": {
"name": {
"type": "string"
},
"affiliation": {
"type": "string"
},
"familyname": {
"type": "string"
},
"givennames": {
"type": "string"
},
"gnd": {
"type": "string",
"index": "not_analyzed"
},
"orcid": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
},
"_files": {
"type": "object",
"properties": {
"bucket": {
"type": "string",
"index": "not_analyzed"
},
"key": {
"type": "string",
"index": "not_analyzed",
"copy_to": "filename"
},
"version_id": {
"type": "string",
"index": "not_analyzed"
},
"size": {
"type": "long"
},
"checksum": {
"type": "string",
"index": "not_analyzed"
},
"previewer": {
"type": "string",
"index": "not_analyzed"
},
"type": {
"type": "string",
"index": "not_analyzed",
"copy_to": "filetype"
}
}
},
"filetype": {
"type": "string",
"index": "not_analyzed"
},
"filename": {
"type": "string",
"index": "not_analyzed"
},
"filecount": {
"type": "integer"
},
"size": {
"type": "long"
},
"owners": {
"type": "integer",
"index": "not_analyzed"
},
"_created": {
"type": "date",
"copy_to": "created"
},
"_updated": {
"type": "date",
"copy_to": "updated"
},
"created": {
"type": "date"
},
"updated": {
"type": "date"
},
"_oai": {
"properties": {
"id": {
"type": "string",
"index": "not_analyzed"
},
"sets": {
"type": "string",
"index": "not_analyzed"
},
"updated": {
"type": "date"
}
},
"type": "object"
},
"_stats": {
"properties": {
"views": {
"type": "integer"
},
"unique_views": {
"type": "integer"
},
"downloads": {
"type": "integer"
},
"unique_downloads": {
"type": "integer"
},
"volume": {
"type": "double"
},
"version_volume": {
"type": "double"
},
"version_views": {
"type": "integer"
},
"version_unique_views": {
"type": "integer"
},
"version_downloads": {
"type": "integer"
},
"version_unique_downloads": {
"type": "integer"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment