Class ScrollableHitSource.Response

  • Enclosing class:
    ScrollableHitSource

    public static class ScrollableHitSource.Response
    extends java.lang.Object
    Response from each scroll batch.
    • Method Detail

      • isTimedOut

        public boolean isTimedOut()
        Did this batch time out?
      • getTotalHits

        public long getTotalHits()
        What were the total number of documents matching the search?
      • getHits

        public java.util.List<? extends ScrollableHitSource.Hit> getHits()
        The documents returned in this batch.
      • getScrollId

        public java.lang.String getScrollId()
        The scroll id used to fetch the next set of documents.