Skip to content

Instantly share code, notes, and snippets.

@ilyasahsan123
Created March 25, 2019 13:15
Show Gist options
  • Save ilyasahsan123/8cc599694070b01a4b138c2523f0bbd1 to your computer and use it in GitHub Desktop.
Save ilyasahsan123/8cc599694070b01a4b138c2523f0bbd1 to your computer and use it in GitHub Desktop.
PUT series/_mappings/movie
{
"properties": {
"film_to_franchise": {
"type": "join",
"eager_global_ordinals": true,
"relations": {
"franchise": "film"
}
},
"genre": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"id": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"title": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
},
"year": {
"type": "text",
"fields": {
"keyword": {
"type": "keyword",
"ignore_above": 256
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment