Class SimpleSearchResult<H>

    • Method Detail

      • totalHitCount

        public long totalHitCount()
        Specified by:
        totalHitCount in interface SearchResult<H>
        Returns:
        The total number of matching entities, ignoring pagination settings.
      • hits

        public List<H> hits()
        Specified by:
        hits in interface SearchResult<H>
        Returns:
        The hits as a List containing one element for each matched entity.
      • aggregation

        public <T> T aggregation​(AggregationKey<T> key)
        Specified by:
        aggregation in interface SearchResult<H>
        Type Parameters:
        T - The type of result for this aggregation.
        Parameters:
        key - The key previously used to register the aggregation during query building.
        Returns:
        The result for the given aggregation.
      • timedOut

        public boolean timedOut()
        Specified by:
        timedOut in interface SearchResult<H>
        Returns:
        whether or not a timeout occurred processing the request.