public class QuerySearchResult extends QuerySearchResultProvider
TransportResponse.Empty
Constructor and Description |
---|
QuerySearchResult() |
QuerySearchResult(long id,
SearchShardTarget shardTarget) |
getHeader, getHeaders, hasHeader, putHeader, remoteAddress, remoteAddress
contextSize, copyContextFrom, getContext, getFromContext, getFromContext, hasInContext, isContextEmpty, putAllInContext, 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 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
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–2015. All rights reserved.