Elasticsearch search querry

You already asked this question in How to convert this ES querry into java? which I'm going to close to keep the discussion in one place.