public class QuerySearchResult extends QuerySearchResultProvider
TransportResponse.Empty
headers
Constructor and Description |
---|
QuerySearchResult() |
QuerySearchResult(long id,
SearchShardTarget shardTarget) |
Modifier and Type | Method and Description |
---|---|
Aggregations |
aggregations() |
void |
aggregations(InternalAggregations aggregations) |
int |
from() |
QuerySearchResult |
from(int from) |
long |
id() |
boolean |
includeFetch()
If both query and fetch happened on the same call.
|
List<SiblingPipelineAggregator> |
pipelineAggregators() |
void |
pipelineAggregators(List<SiblingPipelineAggregator> pipelineAggregators) |
List<ProfileShardResult> |
profileResults()
Returns the profiled results for this search, or potentially null if result was empty
|
void |
profileResults(List<ProfileShardResult> shardResults)
Sets the finalized profiling results for this query
|
QuerySearchResult |
queryResult() |
void |
readFrom(StreamInput in) |
void |
readFromWithId(long id,
StreamInput in) |
static QuerySearchResult |
readQuerySearchResult(StreamInput in) |
boolean |
searchTimedOut() |
void |
searchTimedOut(boolean searchTimedOut) |
SearchShardTarget |
shardTarget() |
void |
shardTarget(SearchShardTarget shardTarget) |
int |
size() |
QuerySearchResult |
size(int size) |
Suggest |
suggest() |
void |
suggest(Suggest suggest) |
Boolean |
terminatedEarly() |
void |
terminatedEarly(boolean terminatedEarly) |
org.apache.lucene.search.TopDocs |
topDocs() |
void |
topDocs(org.apache.lucene.search.TopDocs topDocs) |
void |
writeTo(StreamOutput out) |
void |
writeToNoId(StreamOutput out) |
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public QuerySearchResult()
public QuerySearchResult(long id, SearchShardTarget shardTarget)
public boolean includeFetch()
QuerySearchResultProvider
includeFetch
in class QuerySearchResultProvider
public QuerySearchResult queryResult()
queryResult
in class QuerySearchResultProvider
public long id()
public SearchShardTarget shardTarget()
public void shardTarget(SearchShardTarget shardTarget)
public void searchTimedOut(boolean searchTimedOut)
public boolean searchTimedOut()
public void terminatedEarly(boolean terminatedEarly)
public Boolean terminatedEarly()
public org.apache.lucene.search.TopDocs topDocs()
public void topDocs(org.apache.lucene.search.TopDocs topDocs)
public Aggregations aggregations()
public void aggregations(InternalAggregations aggregations)
@Nullable public List<ProfileShardResult> profileResults()
public void profileResults(List<ProfileShardResult> shardResults)
shardResults
- The finalized profilepublic List<SiblingPipelineAggregator> pipelineAggregators()
public void pipelineAggregators(List<SiblingPipelineAggregator> pipelineAggregators)
public Suggest suggest()
public void suggest(Suggest suggest)
public int from()
public QuerySearchResult from(int from)
public int size()
public QuerySearchResult size(int size)
public static QuerySearchResult readQuerySearchResult(StreamInput in) throws IOException
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportResponse>
IOException
public void readFromWithId(long id, StreamInput in) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportResponse>
IOException
public void writeToNoId(StreamOutput out) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.