I was curious if there were any plans to update or modify the JSON query API in ES 2.0+?
While I find the API to very powerful, it is confusing to construct a valid request and requires special casing a lot of rules. I have some thoughts below on what I see as the current issues, and some suggestions to correct them. I don't intend for this to be a rant, just to provoke discussion. This is done purely from the point of view of constructing queries (not parsing them), and only for the JSON DSL query syntax for searching (not percolate or aggregators).
It is currently hard to construct small parts of a JSON query without knowing all of the elements involved. Looking at a simple query and a filtered query: