org.elasticsearch.search.query
Class QuerySearchResult

java.lang.Object
  extended by org.elasticsearch.search.query.QuerySearchResult
All Implemented Interfaces:
Streamable, QuerySearchResultProvider, SearchPhaseResult

public class QuerySearchResult
extends Object
implements Streamable, QuerySearchResultProvider


Constructor Summary
QuerySearchResult()
           
QuerySearchResult(long id, SearchShardTarget shardTarget)
           
 
Method Summary
 Facets facets()
           
 void facets(InternalFacets facets)
           
 int from()
           
 QuerySearchResult from(int from)
           
 long id()
           
 boolean includeFetch()
          If both query and fetch happened on the same call.
 QuerySearchResult queryResult()
           
 void readFrom(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)
           
 org.apache.lucene.search.TopDocs topDocs()
           
 void topDocs(org.apache.lucene.search.TopDocs topDocs)
           
 void writeTo(StreamOutput out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QuerySearchResult

public QuerySearchResult()

QuerySearchResult

public QuerySearchResult(long id,
                         SearchShardTarget shardTarget)
Method Detail

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 IOException
Throws:
IOException

readFrom

public void readFrom(StreamInput in)
              throws IOException
Specified by:
readFrom in interface Streamable
Throws:
IOException

writeTo

public void writeTo(StreamOutput out)
             throws IOException
Specified by:
writeTo in interface Streamable
Throws:
IOException


Copyright © 2009-2012. All Rights Reserved.