Class ReactiveSearchHitsImpl<T>
java.lang.Object
org.springframework.data.elasticsearch.core.ReactiveSearchHitsImpl<T>
- All Implemented Interfaces:
ReactiveSearchHits<T>
- Since:
- 4.4
- Author:
- Peter-Josef Meisch
-
Field Summary
-
Constructor Summary
-
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
-
Field Details
-
delegate
-
-
Constructor Details
-
ReactiveSearchHitsImpl
-
-
Method Details
-
getTotalHits
public long getTotalHits()- Specified by:
getTotalHits
in interfaceReactiveSearchHits<T>
- Returns:
- the number of total hits.
-
getTotalHitsRelation
- Specified by:
getTotalHitsRelation
in interfaceReactiveSearchHits<T>
- Returns:
- the relation for the total hits
-
hasAggregations
public boolean hasAggregations()- Specified by:
hasAggregations
in interfaceReactiveSearchHits<T>
- Returns:
- true if aggregations are available
-
getAggregations
- Specified by:
getAggregations
in interfaceReactiveSearchHits<T>
- Returns:
- the aggregations.
-
getMaxScore
public float getMaxScore()- Specified by:
getMaxScore
in interfaceReactiveSearchHits<T>
-
hasSearchHits
public boolean hasSearchHits()- Specified by:
hasSearchHits
in interfaceReactiveSearchHits<T>
- Returns:
- whether the
SearchHits
has search hits.
-
getSearchHits
- Specified by:
getSearchHits
in interfaceReactiveSearchHits<T>
- Returns:
- the
SearchHit
s from the search result.
-
getSuggest
- Specified by:
getSuggest
in interfaceReactiveSearchHits<T>
- Returns:
- the suggest response
-
hasSuggest
public boolean hasSuggest()- Specified by:
hasSuggest
in interfaceReactiveSearchHits<T>
- Returns:
- wether the
SearchHits
has a suggest response.
-
getPointInTimeId
Description copied from interface:ReactiveSearchHits
When doing a search with a point in time, the response contains a new point in time id value.- Specified by:
getPointInTimeId
in interfaceReactiveSearchHits<T>
- Returns:
- the new point in time id, if one was returned from Elasticsearch
- Since:
- 5.0
-