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 DocListgetDocList()org.apache.lucene.search.QuerygetQuery()SolrQueryRequestgetRequest()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.ReturnFieldsgetReturnFields()SolrIndexSearchergetSearcher()-
Methods inherited from class org.apache.solr.response.ResultContext
getDocFetcher, 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:
getDocListin classResultContext
-
getReturnFields
public ReturnFields getReturnFields()
- Specified by:
getReturnFieldsin classResultContext
-
getSearcher
public SolrIndexSearcher getSearcher()
- Specified by:
getSearcherin classResultContext
-
getQuery
public org.apache.lucene.search.Query getQuery()
- Specified by:
getQueryin classResultContext
-
getRequest
public SolrQueryRequest getRequest()
Description copied from class:ResultContextNote: 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:
getRequestin classResultContext
-
-