T - the result data class.public interface SearchHits<T> extends Streamable<SearchHit<T>>
SearchHits with additional information from the search.| Modifier and Type | Method and Description |
|---|---|
AggregationsContainer<?> |
getAggregations() |
float |
getMaxScore() |
SearchHit<T> |
getSearchHit(int index) |
List<SearchHit<T>> |
getSearchHits() |
Suggest |
getSuggest() |
long |
getTotalHits() |
TotalHitsRelation |
getTotalHitsRelation() |
default boolean |
hasAggregations() |
default boolean |
hasSearchHits() |
default boolean |
hasSuggest() |
default Iterator<SearchHit<T>> |
iterator() |
and, and, and, and, empty, filter, flatMap, get, isEmpty, map, of, of, of, stream, toList, toSet, toStreamable, toStreamableforEach, spliterator@Nullable AggregationsContainer<?> getAggregations()
float getMaxScore()
SearchHit<T> getSearchHit(int index)
index - position in List.SearchHit at position {index}IndexOutOfBoundsException - on invalid indexlong getTotalHits()
TotalHitsRelation getTotalHitsRelation()
default boolean hasAggregations()
default boolean hasSearchHits()
SearchHits has search hits.default boolean hasSuggest()
SearchHits has a suggest response.Copyright © 2011–2022 Pivotal Software, Inc.. All rights reserved.