public class QuerySearchResult extends QuerySearchResultProvider
TransportResponse.Emptyheaders| Constructor and Description |
|---|
QuerySearchResult() |
QuerySearchResult(long id,
SearchShardTarget shardTarget) |
putHeader, remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putInContextpublic QuerySearchResult()
public QuerySearchResult(long id,
SearchShardTarget shardTarget)
public boolean includeFetch()
QuerySearchResultProviderincludeFetch in class QuerySearchResultProviderpublic QuerySearchResult queryResult()
queryResult in class QuerySearchResultProviderpublic 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 Facets facets()
public void facets(InternalFacets facets)
public Aggregations aggregations()
public void aggregations(InternalAggregations aggregations)
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
IOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class TransportMessage<TransportResponse>IOExceptionpublic void readFromWithId(long id,
StreamInput in)
throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportResponse>IOExceptionpublic void writeToNoId(StreamOutput out) throws IOException
IOExceptionCopyright © 2009–2016. All rights reserved.