Skip to content

Instantly share code, notes, and snippets.

@buremba
Created December 28, 2012 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save buremba/4394060 to your computer and use it in GitHub Desktop.
Save buremba/4394060 to your computer and use it in GitHub Desktop.
elasticsearch mapping
{
"settings": {
"number_of_shards": 5,
"number_of_replicas": 1,
"index.store.compress.stored" : true
},
"mappings": {
"artist": {
"properties": {
"mbid": {
"type": "string",
"index" : "not_analyzed"
},
"sort_name": {
"type": "string"
},
"begin_year": {
"type": "short"
},
"end_year": {
"type": "short"
},
"name": {
"type": "string"
},
"aliases": {
"type": "string",
"index_name" : "aliase"
},
"rank": {
"type": "long"
},
"type": {
"type": "string",
"index": "not_analyzed"
},
"image": {
"type": "string",
"index": "no"
},
"gender": {
"type": "string",
"index": "not_analyzed"
},
"country": {
"type": "string",
"index": "not_analyzed"
},
"tags": {
"type": "string",
"index_name" : "tag",
"index": "not_analyzed"
}
}
},
"release": {
"_parent": {
"type": "artist"
},
"properties": {
"mbid": {
"type": "string",
"index": "not_analyzed"
},
"name": {
"type": "string"
},
"rank": {
"type": "long"
},
"type": {
"type": "string",
"index": "not_analyzed"
},
"image": {
"type": "string",
"index": "no"
},
"release_date": {
"type": "short"
},
"language": {
"type": "string",
"index": "not_analyzed"
},
"script": {
"type": "string",
"index": "not_analyzed"
},
"second_types": {
"type": "string",
"index_name" : "second_type",
"index": "not_analyzed"
},
"tags": {
"type": "string",
"index_name" : "tag",
"index": "not_analyzed"
}
}
},
"song": {
"_parent": {
"type": "release"
},
"properties": {
"name": {
"type": "string"
},
"mbid": {
"type": "string",
"index": "not_analyzed"
},
"rank": {
"type": "long"
},
"length": {
"type": "integer",
"index": "no"
},
"track_no": {
"type": "short",
"index": "no"
},
"release_name": {
"type": "string",
"index": "no"
},
"artist_name": {
"type": "string",
"index": "no"
},
"youtube_id": {
"type": "string",
"index": "no"
},
"artist": {
"type": "string",
"index": "not_analyzed"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment