Uses of Class
org.apache.solr.handler.component.ResponseBuilder
-
Packages that use ResponseBuilder Package Description org.apache.solr.handler.component SearchComponent
implementations for use inSearchHandler
org.apache.solr.request APIs and classes for dealing with Solr requestsorg.apache.solr.response API and implementations ofQueryResponseWriter
for formatting Solr request responsesorg.apache.solr.search APIs and classes for parsing and processing search requestsorg.apache.solr.search.facet APIs and classes for the JSON Facet API.org.apache.solr.search.grouping.distributed Internal classes used to implement distributed result groupingorg.apache.solr.search.grouping.distributed.requestfactory Internal classes used to implement distributed result groupingorg.apache.solr.search.grouping.distributed.responseprocessor Internal classes used to implement distributed result groupingorg.apache.solr.search.grouping.distributed.shardresultserializer Internal classes used to implement distributed result groupingorg.apache.solr.search.grouping.endresulttransformer APIs and classes for transforming result grouping results into the appropriate response formatorg.apache.solr.search.stats APIs and Classes implementing the Stats component used for document frequency calculations.org.apache.solr.spelling APIs and classes used by theSpellCheckComponent
org.apache.solr.util Common utility classes used throughout Solr -
-
Uses of ResponseBuilder in org.apache.solr.handler.component
Methods in org.apache.solr.handler.component that return ResponseBuilder Modifier and Type Method Description static ResponseBuilder
TaskManagementHandler. buildResponseBuilder(SolrQueryRequest req, SolrQueryResponse rsp, List<SearchComponent> components)
protected ResponseBuilder
SearchHandler. newResponseBuilder(SolrQueryRequest req, SolrQueryResponse rsp, List<SearchComponent> components)
Override this method if you require a customResponseBuilder
e.g.Methods in org.apache.solr.handler.component with parameters of type ResponseBuilder Modifier and Type Method Description protected void
SpellCheckComponent. addCollationsToResponse(org.apache.solr.common.params.SolrParams params, SpellingResult spellingResult, ResponseBuilder rb, String q, org.apache.solr.common.util.NamedList<Object> response, boolean suggestionsMayOverlap)
protected boolean
SearchHandler. checkCircuitBreakers(SolrQueryRequest req, SolrQueryResponse rsp, ResponseBuilder rb)
Check ifSolrRequest.SolrRequestType.QUERY
circuit breakers are tripped.void
PivotFacetField. contributeFromShard(int shardNumber, ResponseBuilder rb, List<org.apache.solr.common.util.NamedList<Object>> response)
Recursively merges the contributions from the specified shard for eachPivotFacetValue
represended in theresponse
.protected void
QueryComponent. createDistributedStats(ResponseBuilder rb)
static PivotFacetField
PivotFacetField. createFromListOfNamedLists(int shardNumber, ResponseBuilder rb, PivotFacetValue owner, List<org.apache.solr.common.util.NamedList<Object>> pivotValues)
A recursive method to construct a newPivotFacetField
object from the contents of theNamedList
s provided by the specified shard, relative to a parent value (if this is not the top field in the pivot hierarchy)static PivotFacetValue
PivotFacetValue. createFromNamedList(int shardNumber, ResponseBuilder rb, PivotFacetField parentField, org.apache.solr.common.util.NamedList<Object> pivotData)
A recursive method to construct a newPivotFacetValue
object from the contents of theNamedList
provided by the specified shard, relative to the specified field.protected void
QueryComponent. createMainQuery(ResponseBuilder rb)
protected void
QueryComponent. createRetrieveDocs(ResponseBuilder rb)
int
RealTimeGetComponent. createSubRequests(ResponseBuilder rb)
static org.apache.solr.common.util.NamedList<org.apache.solr.common.util.NamedList<Object>>
SpatialHeatmapFacets. distribFinish(LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet> heatmapInfos, ResponseBuilder rb)
Called by FacetComponent's impl ofSearchComponent.finishStage(ResponseBuilder)
.static LinkedHashMap<String,SpatialHeatmapFacets.HeatmapFacet>
SpatialHeatmapFacets. distribParse(org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
Parses request to "HeatmapFacet" instances.int
ExpandComponent. distributedProcess(ResponseBuilder rb)
int
FacetComponent. distributedProcess(ResponseBuilder rb)
int
PhrasesIdentificationComponent. distributedProcess(ResponseBuilder rb)
int
QueryComponent. distributedProcess(ResponseBuilder rb)
int
RealTimeGetComponent. distributedProcess(ResponseBuilder rb)
int
SearchComponent. distributedProcess(ResponseBuilder rb)
Process for a distributed search.int
StatsComponent. distributedProcess(ResponseBuilder rb)
int
SuggestComponent. distributedProcess(ResponseBuilder rb)
Dispatch shard request inSTAGE_EXECUTE_QUERY
stageint
TermsComponent. distributedProcess(ResponseBuilder rb)
protected void
QueryComponent. doFieldSortValues(ResponseBuilder rb, SolrIndexSearcher searcher)
protected void
QueryComponent. doPrefetch(ResponseBuilder rb)
protected void
FacetComponent.DistribFieldFacet. fillParams(ResponseBuilder rb, org.apache.solr.common.params.SolrParams params, String field)
protected void
FacetComponent.FieldFacet. fillParams(ResponseBuilder rb, org.apache.solr.common.params.SolrParams params, String field)
void
DebugComponent. finishStage(ResponseBuilder rb)
void
ExpandComponent. finishStage(ResponseBuilder rb)
void
FacetComponent. finishStage(ResponseBuilder rb)
void
HighlightComponent. finishStage(ResponseBuilder rb)
void
MoreLikeThisComponent. finishStage(ResponseBuilder rb)
void
PhrasesIdentificationComponent. finishStage(ResponseBuilder rb)
void
QueryComponent. finishStage(ResponseBuilder rb)
void
RealTimeGetComponent. finishStage(ResponseBuilder rb)
void
SearchComponent. finishStage(ResponseBuilder rb)
Called after all responses have been received for this stage.void
SpellCheckComponent. finishStage(ResponseBuilder rb)
void
StatsComponent. finishStage(ResponseBuilder rb)
void
SuggestComponent. finishStage(ResponseBuilder rb)
Used in Distributed Search, merges the suggestion results from every shardvoid
TermsComponent. finishStage(ResponseBuilder rb)
void
TermVectorComponent. finishStage(ResponseBuilder rb)
ShardHandler
SearchHandler. getAndPrepShardHandler(SolrQueryRequest req, ResponseBuilder rb)
protected QueryElevationComponent.Elevation
QueryElevationComponent. getElevation(ResponseBuilder rb)
static org.apache.solr.common.util.NamedList<Object>
SpatialHeatmapFacets. getHeatmapForField(String fieldKey, String fieldName, ResponseBuilder rb, org.apache.solr.common.params.SolrParams params, DocSet docSet)
Called bySimpleFacets
to compute heatmap facets.protected int
QueryComponent. groupedDistributedProcess(ResponseBuilder rb)
protected void
QueryComponent. groupedFinishStage(ResponseBuilder rb)
protected void
QueryComponent. handleGroupedResponses(ResponseBuilder rb, ShardRequest sreq)
void
IterativeMergeStrategy. handleMergeFields(ResponseBuilder rb, SolrIndexSearcher searcher)
void
MergeStrategy. handleMergeFields(ResponseBuilder rb, SolrIndexSearcher searcher)
Implement handleMergeFields(ResponseBuilder rb, SolrIndexSearch searcher) if your merge strategy needs more complex data then the sort fields provide.protected void
QueryComponent. handleRegularResponses(ResponseBuilder rb, ShardRequest sreq)
void
ActiveTasksListComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
DebugComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
ExpandComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
FacetComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
HighlightComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
MoreLikeThisComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
QueryCancellationComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
QueryComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
SearchComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
Called after all responses for a single request were receivedvoid
StatsComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
TermsComponent. handleResponses(ResponseBuilder rb, ShardRequest sreq)
static void
FacetComponent.FacetContext. initContext(ResponseBuilder rb)
Initializes FacetContext using request parameters and saves it in the request context which can be retrieved viaFacetComponent.FacetContext.getFacetContext(SolrQueryRequest)
void
IterativeMergeStrategy. merge(ResponseBuilder rb, ShardRequest sreq)
void
MergeStrategy. merge(ResponseBuilder rb, ShardRequest sreq)
merge defines the merging behaving of results that are collected from the shards during a distributed search.void
PivotFacetValue. mergeContributionFromShard(int shardNumber, ResponseBuilder rb, org.apache.solr.common.util.NamedList<Object> value)
Merges in the count contributions from the specified shard for each.protected void
QueryComponent. mergeIds(ResponseBuilder rb, ShardRequest sreq)
void
PivotFacet. mergeResponseFromShard(int shardNumber, ResponseBuilder rb, List<org.apache.solr.common.util.NamedList<Object>> response)
Recursively merges the response from the specified shard, tracking the known shards.void
DebugComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
ExpandComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
FacetComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
HighlightComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
MoreLikeThisComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
SearchComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
Called after another component adds a requestvoid
SpellCheckComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
StatsComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
TermVectorComponent. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
protected SimpleFacets
FacetComponent. newSimpleFacets(SolrQueryRequest req, DocSet docSet, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
protected void
QueryComponent. populateNextCursorMarkFromMergedShards(ResponseBuilder rb)
Inspects the state of theResponseBuilder
and populates the nextsetNextCursorMark(org.apache.solr.search.CursorMark)
as appropriate based on the merged sort values from individual shardsvoid
ActiveTasksListComponent. prepare(ResponseBuilder rb)
void
DebugComponent. prepare(ResponseBuilder rb)
void
ExpandComponent. prepare(ResponseBuilder rb)
void
FacetComponent. prepare(ResponseBuilder rb)
void
HighlightComponent. prepare(ResponseBuilder rb)
void
MoreLikeThisComponent. prepare(ResponseBuilder rb)
void
PhrasesIdentificationComponent. prepare(ResponseBuilder rb)
void
QueryCancellationComponent. prepare(ResponseBuilder rb)
void
QueryComponent. prepare(ResponseBuilder rb)
void
QueryElevationComponent. prepare(ResponseBuilder rb)
void
RealTimeGetComponent. prepare(ResponseBuilder rb)
void
ResponseLogComponent. prepare(ResponseBuilder rb)
abstract void
SearchComponent. prepare(ResponseBuilder rb)
Prepare the response.void
SpellCheckComponent. prepare(ResponseBuilder rb)
void
StatsComponent. prepare(ResponseBuilder rb)
void
SuggestComponent. prepare(ResponseBuilder rb)
Responsible for issuing build and rebuild command to the specifiedSolrSuggester
void
TermsComponent. prepare(ResponseBuilder rb)
void
TermVectorComponent. prepare(ResponseBuilder rb)
protected void
QueryComponent. prepareGrouping(ResponseBuilder rb)
void
HttpShardHandler. prepDistributed(ResponseBuilder rb)
abstract void
ShardHandler. prepDistributed(ResponseBuilder rb)
void
ActiveTasksListComponent. process(ResponseBuilder rb)
void
DebugComponent. process(ResponseBuilder rb)
void
ExpandComponent. process(ResponseBuilder rb)
void
FacetComponent. process(ResponseBuilder rb)
Actually run the queryvoid
HighlightComponent. process(ResponseBuilder rb)
protected abstract void
IterativeMergeStrategy. process(ResponseBuilder rb, ShardRequest sreq)
void
MoreLikeThisComponent. process(ResponseBuilder rb)
void
PhrasesIdentificationComponent. process(ResponseBuilder rb)
void
QueryCancellationComponent. process(ResponseBuilder rb)
void
QueryComponent. process(ResponseBuilder rb)
Actually run the queryvoid
QueryElevationComponent. process(ResponseBuilder rb)
void
RealTimeGetComponent. process(ResponseBuilder rb)
void
ResponseLogComponent. process(ResponseBuilder rb)
abstract void
SearchComponent. process(ResponseBuilder rb)
Process the request for this componentvoid
SpellCheckComponent. process(ResponseBuilder rb)
void
StatsComponent. process(ResponseBuilder rb)
void
SuggestComponent. process(ResponseBuilder rb)
Responsible for using the specified suggester to get the suggestions for the query and write the resultsvoid
TermsComponent. process(ResponseBuilder rb)
void
TermVectorComponent. process(ResponseBuilder rb)
void
RealTimeGetComponent. processGetFingeprint(ResponseBuilder rb)
void
RealTimeGetComponent. processGetUpdates(ResponseBuilder rb)
void
RealTimeGetComponent. processGetVersions(ResponseBuilder rb)
protected void
ResponseLogComponent. processIds(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher)
protected void
TaskManagementHandler. processRequest(SolrQueryRequest req, ResponseBuilder rb, Map<String,String> extraParams)
Process the actual request.protected void
ResponseLogComponent. processScores(ResponseBuilder rb, DocList dl, IndexSchema schema, SolrIndexSearcher searcher)
void
RealTimeGetComponent. processSync(ResponseBuilder rb, int nVersions, String sync)
void
RealTimeGetComponent. processSyncWithLeader(ResponseBuilder rb, int nVersions, String syncWithLeader, List<Long> versions)
protected int
QueryComponent. regularDistributedProcess(ResponseBuilder rb)
protected void
QueryComponent. regularFinishStage(ResponseBuilder rb)
protected void
QueryComponent. returnFields(ResponseBuilder rb, ShardRequest sreq)
protected void
QueryComponent. updateStats(ResponseBuilder rb, ShardRequest sreq)
Constructors in org.apache.solr.handler.component with parameters of type ResponseBuilder Constructor Description FacetBase(ResponseBuilder rb, String facetType, String facetStr)
FieldFacet(ResponseBuilder rb, String facetStr)
HeatmapFacet(ResponseBuilder rb, String facetStr)
PivotFacet(ResponseBuilder rb, String facetStr)
PivotFacetProcessor(SolrQueryRequest req, DocSet docs, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
QueryFacet(ResponseBuilder rb, String facetStr)
RangeFacetProcessor(SolrQueryRequest req, DocSet docs, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
RangeFacetRequest(ResponseBuilder rb, String f)
StatsField(ResponseBuilder rb, String statsParam)
-
Uses of ResponseBuilder in org.apache.solr.request
Fields in org.apache.solr.request declared as ResponseBuilder Modifier and Type Field Description protected ResponseBuilder
SimpleFacets. rb
Methods in org.apache.solr.request that return ResponseBuilder Modifier and Type Method Description ResponseBuilder
SimpleFacets. getResponseBuilder()
ResponseBuilder
SolrRequestInfo. getResponseBuilder()
May return null if the request handler is not based on SearchHandlerMethods in org.apache.solr.request with parameters of type ResponseBuilder Modifier and Type Method Description void
SolrRequestInfo. setResponseBuilder(ResponseBuilder rb)
Constructors in org.apache.solr.request with parameters of type ResponseBuilder Constructor Description SimpleFacets(SolrQueryRequest req, DocSet docs, org.apache.solr.common.params.SolrParams params, ResponseBuilder rb)
-
Uses of ResponseBuilder in org.apache.solr.response
Constructors in org.apache.solr.response with parameters of type ResponseBuilder Constructor Description BasicResultContext(ResponseBuilder rb)
BasicResultContext(ResponseBuilder rb, DocList docList)
-
Uses of ResponseBuilder in org.apache.solr.search
Methods in org.apache.solr.search with parameters of type ResponseBuilder Modifier and Type Method Description abstract DelegatingCollector
AnalyticsQuery. getAnalyticsCollector(ResponseBuilder rb, org.apache.lucene.search.IndexSearcher searcher)
-
Uses of ResponseBuilder in org.apache.solr.search.facet
Methods in org.apache.solr.search.facet with parameters of type ResponseBuilder Modifier and Type Method Description int
FacetModule. distributedProcess(ResponseBuilder rb)
void
FacetModule. finishStage(ResponseBuilder rb)
org.apache.solr.search.facet.FacetModule.FacetComponentState
FacetModule. getFacetComponentState(ResponseBuilder rb)
void
FacetModule. handleResponses(ResponseBuilder rb, ShardRequest sreq)
void
FacetModule. modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
void
FacetModule. prepare(ResponseBuilder rb)
void
FacetModule. process(ResponseBuilder rb)
-
Uses of ResponseBuilder in org.apache.solr.search.grouping.distributed
Methods in org.apache.solr.search.grouping.distributed with parameters of type ResponseBuilder Modifier and Type Method Description ShardRequest[]
ShardRequestFactory. constructRequest(ResponseBuilder rb)
ReturnsShardRequest
instances.void
ShardResponseProcessor. process(ResponseBuilder rb, ShardRequest shardRequest)
Processes the responses from the specified shardRequest. -
Uses of ResponseBuilder in org.apache.solr.search.grouping.distributed.requestfactory
Methods in org.apache.solr.search.grouping.distributed.requestfactory with parameters of type ResponseBuilder Modifier and Type Method Description ShardRequest[]
SearchGroupsRequestFactory. constructRequest(ResponseBuilder rb)
ShardRequest[]
StoredFieldsShardRequestFactory. constructRequest(ResponseBuilder rb)
ShardRequest[]
TopGroupsShardRequestFactory. constructRequest(ResponseBuilder rb)
-
Uses of ResponseBuilder in org.apache.solr.search.grouping.distributed.responseprocessor
Methods in org.apache.solr.search.grouping.distributed.responseprocessor with parameters of type ResponseBuilder Modifier and Type Method Description void
SearchGroupShardResponseProcessor. process(ResponseBuilder rb, ShardRequest shardRequest)
void
StoredFieldsShardResponseProcessor. process(ResponseBuilder rb, ShardRequest shardRequest)
void
TopGroupsShardResponseProcessor. process(ResponseBuilder rb, ShardRequest shardRequest)
-
Uses of ResponseBuilder in org.apache.solr.search.grouping.distributed.shardresultserializer
Constructors in org.apache.solr.search.grouping.distributed.shardresultserializer with parameters of type ResponseBuilder Constructor Description TopGroupsResultTransformer(ResponseBuilder rb)
-
Uses of ResponseBuilder in org.apache.solr.search.grouping.endresulttransformer
Methods in org.apache.solr.search.grouping.endresulttransformer with parameters of type ResponseBuilder Modifier and Type Method Description void
EndResultTransformer. transform(Map<String,?> result, ResponseBuilder rb, EndResultTransformer.SolrDocumentSource solrDocumentSource)
Transforms the specified result into its final form and puts it into the specified response.void
GroupedEndResultTransformer. transform(Map<String,?> result, ResponseBuilder rb, EndResultTransformer.SolrDocumentSource solrDocumentSource)
void
MainEndResultTransformer. transform(Map<String,?> result, ResponseBuilder rb, EndResultTransformer.SolrDocumentSource solrDocumentSource)
void
SimpleEndResultTransformer. transform(Map<String,?> result, ResponseBuilder rb, EndResultTransformer.SolrDocumentSource solrDocumentSource)
-
Uses of ResponseBuilder in org.apache.solr.search.stats
Methods in org.apache.solr.search.stats with parameters of type ResponseBuilder Modifier and Type Method Description int
StatsCache. approxCheckMissingStats(ResponseBuilder rb, StatsSource statsSource, Consumer<org.apache.lucene.index.Term> missingTermStats, Consumer<String> missingFieldStats)
Check if thestatsSource
is missing some term or field statistics info, which then needs to be retrieved.protected ShardRequest
ExactStatsCache. doRetrieveStatsRequest(ResponseBuilder rb)
protected ShardRequest
LocalStatsCache. doRetrieveStatsRequest(ResponseBuilder rb)
protected ShardRequest
LRUStatsCache. doRetrieveStatsRequest(ResponseBuilder rb)
protected abstract ShardRequest
StatsCache. doRetrieveStatsRequest(ResponseBuilder rb)
protected void
ExactStatsCache. doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)
protected void
LocalStatsCache. doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)
protected abstract void
StatsCache. doReturnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)
protected void
ExactStatsCache. doSendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
protected void
LocalStatsCache. doSendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
protected abstract void
StatsCache. doSendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
protected Map<String,CollectionStats>
ExactSharedStatsCache. getPerShardColStats(ResponseBuilder rb, String shard)
protected Map<String,CollectionStats>
ExactStatsCache. getPerShardColStats(ResponseBuilder rb, String shard)
protected Map<String,CollectionStats>
LRUStatsCache. getPerShardColStats(ResponseBuilder rb, String shard)
ShardRequest
StatsCache. retrieveStatsRequest(ResponseBuilder rb)
Creates aShardRequest
to retrieve per-shard stats related to the current query and the current state of the requester'sStatsCache
.void
StatsCache. returnLocalStats(ResponseBuilder rb, SolrIndexSearcher searcher)
Prepare a local (from the local shard) response to a "retrieve stats" shard request.void
StatsCache. sendGlobalStats(ResponseBuilder rb, ShardRequest outgoing)
Prepare global stats data to be sent out to shards in this request. -
Uses of ResponseBuilder in org.apache.solr.spelling
Methods in org.apache.solr.spelling with parameters of type ResponseBuilder Modifier and Type Method Description List<SpellCheckCollation>
SpellCheckCollator. collate(SpellingResult result, String originalQuery, ResponseBuilder ultimateResponse)
void
ConjunctionSolrSpellChecker. modifyRequest(ResponseBuilder rb, ShardRequest sreq)
void
DirectSolrSpellChecker. modifyRequest(ResponseBuilder rb, ShardRequest sreq)
void
SolrSpellChecker. modifyRequest(ResponseBuilder rb, ShardRequest sreq)
modify the shard request to be used in a distributed environment. -
Uses of ResponseBuilder in org.apache.solr.util
Methods in org.apache.solr.util with parameters of type ResponseBuilder Modifier and Type Method Description static Set<String>
SolrPluginUtils. getDebugInterests(String[] params, ResponseBuilder rb)
static Object
SolrResponseUtil. getSubsectionFromShardResponse(ResponseBuilder rb, ShardResponse srsp, String shardResponseKey, boolean subSectionOptional)
static void
SolrPluginUtils. optimizePreFetchDocs(ResponseBuilder rb, DocList docs, org.apache.lucene.search.Query query, SolrQueryRequest req, SolrQueryResponse res)
Pre-fetch documents into the index searcher's document cache.
-