H - The type of hits.public interface SearchResult<H>
| Modifier and Type | Method and Description |
|---|---|
<A> A |
aggregation(AggregationKey<A> key) |
default <A> A |
getAggregation(AggregationKey<A> key)
Deprecated.
Use
aggregation(AggregationKey) instead. |
default List<H> |
getHits()
Deprecated.
Use
hits() instead. |
default Duration |
getTook()
Deprecated.
Use
took() instead. |
default long |
getTotalHitCount()
Deprecated.
Use
totalHitCount() instead. |
List<H> |
hits() |
default boolean |
isTimedOut()
Deprecated.
Use
timedOut() instead. |
boolean |
timedOut() |
Duration |
took() |
long |
totalHitCount() |
long totalHitCount()
@Deprecated default long getTotalHitCount()
totalHitCount() instead.@Deprecated default List<H> getHits()
hits() instead.List containing one element for each matched entity.<A> A aggregation(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.@Deprecated default <A> A getAggregation(AggregationKey<A> key)
aggregation(AggregationKey) instead.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.@Deprecated default Duration getTook()
took() instead.Durationboolean timedOut()
@Deprecated default boolean isTimedOut()
timedOut() instead.Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.