Package org.apache.solr.response
Class BasicResultContext
- java.lang.Object
-
- org.apache.solr.response.ResultContext
-
- org.apache.solr.response.BasicResultContext
-
public class BasicResultContext extends ResultContext
-
-
Field Summary
-
Fields inherited from class org.apache.solr.response.ResultContext
READASBYTES
-
-
Constructor Summary
Constructors Constructor Description BasicResultContext(ResponseBuilder rb)
BasicResultContext(ResponseBuilder rb, DocList docList)
BasicResultContext(DocList docList, ReturnFields returnFields, SolrIndexSearcher searcher, org.apache.lucene.search.Query query, SolrQueryRequest req)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocList
getDocList()
org.apache.lucene.search.Query
getQuery()
SolrQueryRequest
getRequest()
Note: do not use the request to get the searcher! A cross-core request may have a different searcher (for the other core) than the original request.ReturnFields
getReturnFields()
SolrIndexSearcher
getSearcher()
-
Methods inherited from class org.apache.solr.response.ResultContext
getProcessedDocuments, wantsScores
-
-
-
-
Constructor Detail
-
BasicResultContext
public BasicResultContext(DocList docList, ReturnFields returnFields, SolrIndexSearcher searcher, org.apache.lucene.search.Query query, SolrQueryRequest req)
-
BasicResultContext
public BasicResultContext(ResponseBuilder rb)
-
BasicResultContext
public BasicResultContext(ResponseBuilder rb, DocList docList)
-
-
Method Detail
-
getDocList
public DocList getDocList()
- Specified by:
getDocList
in classResultContext
-
getReturnFields
public ReturnFields getReturnFields()
- Specified by:
getReturnFields
in classResultContext
-
getSearcher
public SolrIndexSearcher getSearcher()
- Specified by:
getSearcher
in classResultContext
-
getQuery
public org.apache.lucene.search.Query getQuery()
- Specified by:
getQuery
in classResultContext
-
getRequest
public SolrQueryRequest getRequest()
Description copied from class:ResultContext
Note: do not use the request to get the searcher! A cross-core request may have a different searcher (for the other core) than the original request.- Specified by:
getRequest
in classResultContext
-
-