Class ScrollableHitSource.Response

  • Enclosing class:
    ScrollableHitSource

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

      Modifier and Type Method Description
      java.util.List<ScrollableHitSource.SearchFailure> getFailures()
      Where there any search failures?
      java.util.List<? extends ScrollableHitSource.Hit> getHits()
      The documents returned in this batch.
      java.lang.String getScrollId()
      The scroll id used to fetch the next set of documents.
      long getTotalHits()
      What were the total number of documents matching the search?
      boolean isTimedOut()
      Did this batch time out?
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.