Could not add subquery to bool must query

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...

You can still do that:

query: {
    bool: {
        'must' => [
             bool: {
                   'should': ...
             }
        ]
    }
}

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.