A query builder for elastic search