Skip to content

Instantly share code, notes, and snippets.

View alessandrobenedetti's full-sized avatar

Alessandro Benedetti alessandrobenedetti

View GitHub Profile
@alessandrobenedetti
alessandrobenedetti / ES-ParentMapping
Last active December 23, 2015 23:49
Elastic Search [Query Time Join] [has_child] Type [<type>] does not have parent mapping
// index type creation
curl -XPUT 'http://localhost:9200/example/' -d '
index :
    number_of_shards : 3
    number_of_replicas : 2
'
curl -XPUT 'http://localhost:9200/example/document3/_mapping' -d '{"document3" : {"properties":{"label" : {"type" : "string", "store" : "yes", "indexed" : "analysed"},"description" : {"type" : "string", "store" : "yes", "indexed" : "analyzed"}}}}'