Added size option to query object for elasticSearch