Skip to content

Instantly share code, notes, and snippets.

@loren
Created October 23, 2014 02:25
Show Gist options
  • Save loren/b04165195afa6895affb to your computer and use it in GitHub Desktop.
Save loren/b04165195afa6895affb to your computer and use it in GitHub Desktop.
Initial Flickr Photo mapping for Elasticsearch
{
"development-asis-flickr_photos": {
"mappings": {
"flickr_photo": {
"properties": {
"description": {
"type": "string",
"analyzer": "en_analyzer"
},
"owner": {
"type": "string",
"analyzer": "case_insensitive_keyword_analyzer"
},
"popularity": {
"type": "integer"
},
"groups": {
"type": "string",
"analyzer": "case_insensitive_keyword_analyzer"
},
"tags": {
"type": "string",
"analyzer": "tag_analyzer"
},
"taken_at": {
"type": "date",
"format": "dateOptionalTime"
},
"thumbnail_url": {
"type": "string",
"analyzer": "case_insensitive_keyword_analyzer"
},
"title": {
"type": "string",
"analyzer": "en_analyzer"
},
"url": {
"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