Is it possible to have a Nested Type with List inside of it in ElasticSearch? An Example would be something of I was thinking is like this
{
"name" : "Zach",
"car" : [
{
"make" : "Saturn",
"model" : "SL",
"colors": ["Red","Blue","Green"]
},
{
"make" : "Saturn",
"model" : "Imprezza",
"colors": ["Pink","Green"]
}
]
}
How would I query such the FF?
1) I want to query all persons that their cars are "make" with "Saturn" and has colors of "Green"
2) I want to query all persons that their cars has colors of "Green" or "PINK"