Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Wrong mapping using a nested object with same name as its type
curl -XPOST localhost:9200/index/type/1 -d '
{
"type": {
"id" : "test id",
"title" : "test title"
},
"type2" : {
"id" : "test"
}
}
'
curl -XGET localhost:9200/index/type/_mapping?pretty
curl -XGET localhost:9200/index/type/_search?pretty -d '
{
"query" : {
"term" : {"type2.id" : "test"}
}
}
'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.