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 |
|---|---|
org.elasticsearch.search.aggregations.Aggregations |
getAggregations() |
float |
getMaxScore() |
SearchHit<T> |
getSearchHit(int index) |
List<SearchHit<T>> |
getSearchHits() |
long |
getTotalHits() |
TotalHitsRelation |
getTotalHitsRelation() |
default boolean |
hasAggregations() |
default boolean |
hasSearchHits() |
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 org.elasticsearch.search.aggregations.Aggregations 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.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.