elasticsearch: can remove duplicate field in query?

Solution 1:

The answer is no. With figure #2 elastic throws an error:

[should] query malformed, no start_object after query name

If you want to create a nested boolean expression, you must put the keyword bool before.

For example: How to combine multiple bool queries in elasticsearch