Last active
November 27, 2015 08:32
-
-
Save rsimon/c79ac219abf312f23ef1 to your computer and use it in GitHub Desktop.
ElasticSearch Mapping for Pelagios annotations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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