Skip to content

Instantly share code, notes, and snippets.

@rsimon
Last active November 27, 2015 08:32
Show Gist options
  • Save rsimon/c79ac219abf312f23ef1 to your computer and use it in GitHub Desktop.
Save rsimon/c79ac219abf312f23ef1 to your computer and use it in GitHub Desktop.
ElasticSearch Mapping for Pelagios annotations
{
"object": {
"properties": {
"identifier": { "type": "string", "index": "not_analyzed" },
"homepage": { "type": "string", "index": "no" },
"is_in_dataset": {
"type": "nested",
"properties": {
"identifier": { "type": "string", "index": "not_analyzed" },
"title": { "type": "string", "index": "no" }
}
},
"annotates_item": {
"type": "nested",
"properties": {
"identifier": { "type": "string", "index": "not_analyzed" },
"title": { "type": "string" },
"description": { "type": "string" }
}
},
"text_quote": {
"type": "nested",
"properties": {
"text_before": { "type": "string" },
"text": { "type": "string" },
"text_after": { "type": "string" }
}
},
"places": { "type": "string", "index": "not_analyzed" },
"geometry": { "type": "geo_shape", "tree": "quadtree", "precision": "50m" },
"temporal_bounds": {
"type": "nested",
"properties": {
"from": { "type": "date", "format": "basic_date_time_no_millis" },
"to": { "type": "date", "format": "basic_date_time_no_millis" }
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment