Skip to content

Instantly share code, notes, and snippets.

@loren
Created October 28, 2014 17:29
Show Gist options
  • Save loren/57780909332d570a5922 to your computer and use it in GitHub Desktop.
Save loren/57780909332d570a5922 to your computer and use it in GitHub Desktop.
Initial Instagram Photo mapping for Elasticsearch
{
"development-asis-instagram_photos": {
"mappings": {
"instagram_photo": {
"properties": {
"caption": {
"type": "string",
"analyzer": "en_analyzer"
},
"popularity": {
"type": "integer"
},
"tags": {
"type": "string",
"analyzer": "tag_analyzer"
},
"taken_at": {
"type": "date",
"format": "dateOptionalTime"
},
"thumbnail_url": {
"type": "string",
"analyzer": "case_insensitive_keyword_analyzer"
},
"url": {
"type": "string",
"analyzer": "case_insensitive_keyword_analyzer"
},
"username": {
"type": "string",
"analyzer": "case_insensitive_keyword_analyzer"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment