Pasting in separate post, as body limit of previous post has been exhausted.
{
...
"_shards": {
...
},
"hits": {
"total": 2,
"max_score": 28.32935,
"hits": [
{
...
"fields": {
"Title": [
"Jurassic World"
],
"Status": [
"NS"
]
},
"inner_hits": {
"inner_hits": {
"hits": {
"total": 5,
"max_score": 25.036417,
"hits": [
{
"_index": "in22",
"_type": "event",
"_id": "ET00009709",
"_nested": {
"field": "inner_hits",
"offset": 5
},
"_score": 25.036417,
"_source": {
"Code": "ET00009716",
"IsDefault": "",
"Language": "Bengali",
"Format": "2D",
"Region": "MUMBAI"
}
},
{
"_index": "in22",
"_type": "event",
"_id": "ET00009709",
"_nested": {
"field": "inner_hits",
"offset": 4
},
"_score": 25.036417,
"_source": {
"Code": "ET00009715",
"IsDefault": "",
"Language": "Hindi",
"Format": "3D",
"Region": "MUMBAI"
}
},
{
"_index": "in22",
"_type": "event",
"_id": "ET00009709",
"_nested": {
"field": "inner_hits",
"offset": 3
},
"_score": 25.036417,
"_source": {
"Code": "ET00009714",
"IsDefault": "",
"Language": "Tamil",
"Format": "3D",
"Region": "MUMBAI"
}
}
]
}
}
}
}
]
}
}
So I was wondering how to produces all 5 document which matches Region=MUMBAI