Skip to content

Instantly share code, notes, and snippets.

Avatar

Alessandro Benedetti alessandrobenedetti

View GitHub Profile
@alessandrobenedetti
alessandrobenedetti / ES-ParentMapping
Last active Dec 23, 2015
Elastic Search [Query Time Join] [has_child] Type [<type>] does not have parent mapping
View ES-ParentMapping
// 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"}}}}'
You can’t perform that action at this time.