public interface SearchHits extends Streamable, ToXContent, java.lang.Iterable<SearchHit>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_PARAMS
Modifier and Type | Method and Description |
---|---|
SearchHit |
getAt(int position)
Return the hit as the provided position.
|
SearchHit[] |
getHits()
The hits of the search request (based on the search type, and from / size provided).
|
float |
getMaxScore()
The maximum score of this query.
|
long |
getTotalHits()
The total number of hits that matches the search request.
|
SearchHit[] |
hits()
The hits of the search request (based on the search type, and from / size provided).
|
float |
maxScore()
The maximum score of this query.
|
long |
totalHits()
The total number of hits that matches the search request.
|
readFrom, writeTo
toXContent
long totalHits()
long getTotalHits()
float maxScore()
float getMaxScore()
SearchHit[] hits()
SearchHit getAt(int position)
SearchHit[] getHits()