H - The type of hits.public interface SearchResult<H>
| Modifier and Type | Method and Description |
|---|---|
<A> A |
getAggregation(AggregationKey<A> key) |
List<H> |
getHits() |
Duration |
getTook() |
long |
getTotalHitCount() |
boolean |
isTimedOut() |
long getTotalHitCount()
List<H> getHits()
List containing one element for each matched entity.<A> A getAggregation(AggregationKey<A> key)
A - The type of result for this aggregation.key - The key previously used to register the aggregation during query building.SearchException - If the given key was never registered
while building this query, and is thus not mapped to anything.boolean isTimedOut()
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.