org.elasticsearch.search.query
Class QuerySearchResult
java.lang.Object
org.elasticsearch.search.query.QuerySearchResult
- All Implemented Interfaces:
- Streamable, QuerySearchResultProvider, SearchPhaseResult
public class QuerySearchResult
- extends java.lang.Object
- implements Streamable, QuerySearchResultProvider
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QuerySearchResult
public QuerySearchResult()
QuerySearchResult
public QuerySearchResult(long id,
SearchShardTarget shardTarget)
includeFetch
public boolean includeFetch()
- Description copied from interface:
QuerySearchResultProvider
- If both query and fetch happened on the same call.
- Specified by:
includeFetch
in interface QuerySearchResultProvider
queryResult
public QuerySearchResult queryResult()
- Specified by:
queryResult
in interface QuerySearchResultProvider
id
public long id()
- Specified by:
id
in interface SearchPhaseResult
shardTarget
public SearchShardTarget shardTarget()
- Specified by:
shardTarget
in interface SearchPhaseResult
shardTarget
public void shardTarget(SearchShardTarget shardTarget)
- Specified by:
shardTarget
in interface SearchPhaseResult
searchTimedOut
public void searchTimedOut(boolean searchTimedOut)
searchTimedOut
public boolean searchTimedOut()
topDocs
public org.apache.lucene.search.TopDocs topDocs()
topDocs
public void topDocs(org.apache.lucene.search.TopDocs topDocs)
facets
public Facets facets()
facets
public void facets(InternalFacets facets)
from
public int from()
from
public QuerySearchResult from(int from)
size
public int size()
size
public QuerySearchResult size(int size)
readQuerySearchResult
public static QuerySearchResult readQuerySearchResult(StreamInput in)
throws java.io.IOException
- Throws:
java.io.IOException
readFrom
public void readFrom(StreamInput in)
throws java.io.IOException
- Specified by:
readFrom
in interface Streamable
- Throws:
java.io.IOException
writeTo
public void writeTo(StreamOutput out)
throws java.io.IOException
- Specified by:
writeTo
in interface Streamable
- Throws:
java.io.IOException