Last active
June 20, 2019 15:30
-
-
Save sohangp/c1de8f2c32fd54cf5eb4cf9fe933c091 to your computer and use it in GitHub Desktop.
Recreate Index with a GrandChild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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