Interface ReactiveSearchHits<T>

Type Parameters:
T - the result data class.
All Known Implementing Classes:
ReactiveSearchHitsImpl

public interface ReactiveSearchHits<T>
Encapsulates a Flux of SearchHits with additional information from the search.
Since:
4.4
Author:
Peter-Josef Meisch
  • Method Details

    • getAggregations

      @Nullable AggregationsContainer<?> getAggregations()
      Returns:
      the aggregations.
    • getMaxScore

      float getMaxScore()
    • getSearchHits

      reactor.core.publisher.Flux<SearchHit<T>> getSearchHits()
      Returns:
      the SearchHits 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

      @Nullable Suggest getSuggest()
      Returns:
      the suggest response
    • hasSuggest

      boolean hasSuggest()
      Returns:
      wether the SearchHits has a suggest response.