Interface ReactiveSearchHits<T>
- Type Parameters:
T
- the result data class.
- All Known Implementing Classes:
ReactiveSearchHitsImpl
public interface ReactiveSearchHits<T>
Encapsulates a Flux of
SearchHit
s with additional information from the search.- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Method Summary
Modifier and TypeMethodDescriptionfloat
When doing a search with a point in time, the response contains a new point in time id value.long
boolean
boolean
boolean
-
Method Details
-
getAggregations
- Returns:
- the aggregations.
-
getMaxScore
float getMaxScore() -
getSearchHits
- Returns:
- the
SearchHit
s from the search result.
-
getTotalHits
long getTotalHits()- Returns:
- the number of total hits.
-
getTotalHitsRelation
TotalHitsRelation getTotalHitsRelation()- Returns:
- the relation for the total hits
-
hasAggregations
boolean hasAggregations()- Returns:
- true if aggregations are available
-
hasSearchHits
boolean hasSearchHits()- Returns:
- whether the
SearchHits
has search hits.
-
getSuggest
- Returns:
- the suggest response
-
hasSuggest
boolean hasSuggest()- Returns:
- wether the
SearchHits
has a suggest response.
-
getPointInTimeId
When doing a search with a point in time, the response contains a new point in time id value.- Returns:
- the new point in time id, if one was returned from Elasticsearch
- Since:
- 5.0
-