Skip to content

Instantly share code, notes, and snippets.

@sohangp
Last active June 20, 2019 15:30
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 sohangp/c1de8f2c32fd54cf5eb4cf9fe933c091 to your computer and use it in GitHub Desktop.
Save sohangp/c1de8f2c32fd54cf5eb4cf9fe933c091 to your computer and use it in GitHub Desktop.
Recreate Index with a GrandChild
curl -X PUT 'http://localhost:9200/family_tree' \
-H 'content-type: application/json' \
-d '{
"settings":{
...
},
"mappings":{
"properties":{
...
"relation_type":{
"type":"join",
"eager_global_ordinals":true,
"relations":{
"parent":[ "child", "wife" ],
"child":"grandchild"
}
}
}
}
}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment