public static class ScrollableHitSource.Response
extends java.lang.Object
Constructor and Description |
---|
Response(boolean timedOut,
java.util.List<ScrollableHitSource.SearchFailure> failures,
long totalHits,
java.util.List<? extends ScrollableHitSource.Hit> hits,
java.lang.String scrollId) |
Modifier and Type | Method and 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?
|
public Response(boolean timedOut, java.util.List<ScrollableHitSource.SearchFailure> failures, long totalHits, java.util.List<? extends ScrollableHitSource.Hit> hits, java.lang.String scrollId)
public boolean isTimedOut()
public final java.util.List<ScrollableHitSource.SearchFailure> getFailures()
public long getTotalHits()
public java.util.List<? extends ScrollableHitSource.Hit> getHits()
public java.lang.String getScrollId()