public class QuerySearchResult extends QuerySearchResultProvider
TransportResponse.Empty
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.
|
java.util.List<SiblingPipelineAggregator> |
pipelineAggregators() |
void |
pipelineAggregators(java.util.List<SiblingPipelineAggregator> pipelineAggregators) |
ProfileShardResult |
profileResults()
Returns the profiled results for this search, or potentially null if result was empty
|
void |
profileResults(ProfileShardResult shardResults)
Sets the finalized profiling results for this query
|
QuerySearchResult |
queryResult() |
void |
readFrom(StreamInput in)
Set this object's fields from a StreamInput.
|
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) |
DocValueFormat[] |
sortValueFormats() |
Suggest |
suggest() |
void |
suggest(Suggest suggest) |
java.lang.Boolean |
terminatedEarly() |
void |
terminatedEarly(boolean terminatedEarly) |
org.apache.lucene.search.TopDocs |
topDocs() |
void |
topDocs(org.apache.lucene.search.TopDocs topDocs,
DocValueFormat[] sortValueFormats) |
void |
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
|
void |
writeToNoId(StreamOutput out) |
remoteAddress, remoteAddress
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 java.lang.Boolean terminatedEarly()
public org.apache.lucene.search.TopDocs topDocs()
public void topDocs(org.apache.lucene.search.TopDocs topDocs, DocValueFormat[] sortValueFormats)
public DocValueFormat[] sortValueFormats()
public Aggregations aggregations()
public void aggregations(InternalAggregations aggregations)
@Nullable public ProfileShardResult profileResults()
public void profileResults(ProfileShardResult shardResults)
shardResults
- The finalized profilepublic java.util.List<SiblingPipelineAggregator> pipelineAggregators()
public void pipelineAggregators(java.util.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 java.io.IOException
java.io.IOException
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class TransportMessage
java.io.IOException
public void readFromWithId(long id, StreamInput in) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in class TransportMessage
java.io.IOException
public void writeToNoId(StreamOutput out) throws java.io.IOException
java.io.IOException