AccumulatedResult next(Json.Result next) {
      Objects.requireNonNull(next, "next");
      return new AccumulatedResult(count + next.searchHits().hits().size(), limit, next);
    }
Max number of documents to fetch
criteria/elasticsearch/src/org/immutables/criteria/elasticsearch/Scrolling.java