An elastic search query builder