Interface SearchHits<T>
- All Superinterfaces:
Iterable<SearchHit<T>>,Streamable<SearchHit<T>>,Supplier<Stream<SearchHit<T>>>
- All Known Implementing Classes:
SearchHitsImpl
-
Method Summary
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
hasSearchHits
default boolean hasSearchHits()- Returns:
- whether the
SearchHitshas search hits.
-
getExecutionDuration
Duration getExecutionDuration()- Returns:
- the execution duration it took to complete the request
-
getSearchHit
- Parameters:
index- position in List.- Returns:
- the
SearchHitat position {index} - Throws:
IndexOutOfBoundsException- on invalid index
-
getSearchHits
- Returns:
- the contained
SearchHits.
-
iterator
-