Streamable, WriteableDfsSearchResult, FetchSearchResult, QueryFetchSearchResult, QuerySearchResult, ScrollQueryFetchSearchResult, ScrollQuerySearchResult, SearchTransportService.CanMatchResponsepublic abstract class SearchPhaseResult extends TransportResponse implements Streamable
TransportResponse.EmptyWriteable.Reader<V>, Writeable.Writer<V>| Modifier and Type | Field | Description |
|---|---|---|
protected long |
requestId |
| Constructor | Description |
|---|---|
SearchPhaseResult() |
| Modifier and Type | Method | Description |
|---|---|---|
FetchSearchResult |
fetchResult() |
Returns the fetch result iff it's included in this response otherwise
null |
long |
getRequestId() |
Returns the results request ID that is used to reference the search context on the executing
node
|
SearchShardTarget |
getSearchShardTarget() |
|
int |
getShardIndex() |
Returns the shard index in the context of the currently executing search request that is
used for accounting on the coordinating node
|
QuerySearchResult |
queryResult() |
Returns the query result iff it's included in this response otherwise
null |
void |
setSearchShardTarget(SearchShardTarget shardTarget) |
|
void |
setShardIndex(int shardIndex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitreadFrom, writeToreadFrom, remoteAddress, remoteAddress, writeTopublic long getRequestId()
public int getShardIndex()
public SearchShardTarget getSearchShardTarget()
public void setSearchShardTarget(SearchShardTarget shardTarget)
public void setShardIndex(int shardIndex)
public QuerySearchResult queryResult()
nullpublic FetchSearchResult fetchResult()
null