Skip to content

Instantly share code, notes, and snippets.

View rukshanperera's full-sized avatar

rukshanperera

View GitHub Profile
@rukshanperera
rukshanperera / Create index and mappings
Last active August 29, 2015 13:57
Term query to get children using parent id
#Remove old index
curl -XDELETE "http://localhost:9200/myindex"
#Create index
curl -XPUT "http://localhost:9200/myindex"
curl -XPOST "http://localhost:9200/myindex/Parent/_mapping" -d '
{ "Parent" :
{ "properties" : {
"name" : {