Module org.elasticsearch.server
Package org.elasticsearch.action.search
Class SearchResponseSections
java.lang.Object
org.elasticsearch.action.search.SearchResponseSections
- All Implemented Interfaces:
RefCounted
Holds some sections that a search response is composed of (hits, aggs, suggestions etc.) during some steps of the search response
building.
-
Field Summary
Modifier and TypeFieldDescriptionprotected final InternalAggregations
static final SearchResponseSections
static final SearchResponseSections
protected final SearchHits
protected final int
protected final SearchProfileResults
protected final Suggest
protected final Boolean
protected final boolean
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED
-
Constructor Summary
ConstructorDescriptionSearchResponseSections
(SearchHits hits, InternalAggregations aggregations, Suggest suggest, boolean timedOut, Boolean terminatedEarly, SearchProfileResults profileResults, int numReducePhases) -
Method Summary
Modifier and TypeMethodDescriptionboolean
decRef()
boolean
final SearchHits
hits()
void
incRef()
final Map<String,
SearchProfileShardResult> profile()
Returns the profile results for this search response (including all shards).final Suggest
suggest()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Field Details
-
EMPTY_WITH_TOTAL_HITS
-
EMPTY_WITHOUT_TOTAL_HITS
-
hits
-
aggregations
-
suggest
-
profileResults
-
timedOut
protected final boolean timedOut -
terminatedEarly
-
numReducePhases
protected final int numReducePhases
-
-
Constructor Details
-
SearchResponseSections
public SearchResponseSections(SearchHits hits, InternalAggregations aggregations, Suggest suggest, boolean timedOut, Boolean terminatedEarly, SearchProfileResults profileResults, int numReducePhases)
-
-
Method Details
-
hits
-
suggest
-
profile
Returns the profile results for this search response (including all shards). An empty map is returned if profiling was not enabled- Returns:
- Profile results
-
incRef
public void incRef()- Specified by:
incRef
in interfaceRefCounted
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRef
in interfaceRefCounted
-
decRef
public boolean decRef()- Specified by:
decRef
in interfaceRefCounted
-
hasReferences
public boolean hasReferences()- Specified by:
hasReferences
in interfaceRefCounted
-