I have some problem with Elasticsearch version: 5.1.1
in older versions was supported query in query in unlimited tree level, eg.:
query: {
bool: {
'must' => [
'query': {
'should': ...
}
]
}
}
it can not be simulated yet...