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 abstract DocList
getDocList()
Iterator<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()
-
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<SolrDocument> getProcessedDocuments()
-
-