Interface SearchHitsIterator<T>
- Type Parameters:
T-
- All Superinterfaces:
AutoCloseable, Closeable, CloseableIterator<SearchHit<T>>, Iterator<SearchHit<T>>
- Since:
- 4.0
- Author:
- Sascha Woo, Mohamed El Harrougui
-
Method Summary
Methods inherited from interface CloseableIterator
close, spliterator, streamMethods inherited from interface Iterator
forEachRemaining, hasNext, next, remove
-
Method Details
-
getAggregations
@Nullable AggregationsContainer<?> getAggregations()- Returns:
- the aggregations.
-
getMaxScore
float getMaxScore()- Returns:
- the maximum score
-
getExecutionDuration
Duration getExecutionDuration()- Returns:
- the execution duration it took to complete the request
-
getTotalHits
long getTotalHits()- Returns:
- the number of total hits.
-
getTotalHitsRelation
TotalHitsRelation getTotalHitsRelation()- Returns:
- the relation for the total hits
-
hasAggregations
default boolean hasAggregations()- Returns:
- true if aggregations are available
-