Package org.apache.solr.response
Class ResultContext
- java.lang.Object
-
- org.apache.solr.response.ResultContext
-
- Direct Known Subclasses:
BasicResultContext
public abstract class ResultContext extends Object
A class to hold the QueryResult and the Query
-
-
Field Summary
Fields Modifier and Type Field Description static ThreadLocal<Predicate<String>>
READASBYTES
-
Constructor Summary
Constructors Constructor Description ResultContext()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description SolrDocumentFetcher
getDocFetcher()
abstract DocList
getDocList()
Iterator<org.apache.solr.common.SolrDocument>
getProcessedDocuments()
abstract org.apache.lucene.search.Query
getQuery()
abstract 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.abstract ReturnFields
getReturnFields()
abstract SolrIndexSearcher
getSearcher()
boolean
wantsScores()
-
-
-
Field Detail
-
READASBYTES
public static final ThreadLocal<Predicate<String>> READASBYTES
-
-
Method Detail
-
getDocList
public abstract DocList getDocList()
-
getReturnFields
public abstract ReturnFields getReturnFields()
-
getSearcher
public abstract SolrIndexSearcher getSearcher()
-
getDocFetcher
public SolrDocumentFetcher getDocFetcher()
-
getQuery
public abstract org.apache.lucene.search.Query getQuery()
-
getRequest
public abstract 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.
-
wantsScores
public boolean wantsScores()
-
getProcessedDocuments
public Iterator<org.apache.solr.common.SolrDocument> getProcessedDocuments()
-
-