in reply to Re^4: Queries for elastic search using perl
in thread Queries for elastic search using perl

What do you mean exactly by "near the bool"?

As posted, I see two data structures. The one you have:

$VAR1 = ['bool' => { ...

And the one you say you want:

$VAR1 = [ 'bool', { ...

But there is no difference to Perl between the two structures. 'bool' => ... and 'bool', ... are exactly the same. See perlop on the "fat comma".