public class QueryComponent extends SearchComponent
| Modifier and Type | Class and Description |
|---|---|
protected static class |
QueryComponent.ScoreAndDoc
Fake scorer for a single document
TODO: when SOLR-5595 is fixed, this wont be needed, as we dont need to recompute sort values here from the comparator
|
SolrInfoBean.Category, SolrInfoBean.Group| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_NAME |
protected static EndResultTransformer |
MAIN_END_RESULT_TRANSFORMER |
protected static EndResultTransformer |
SIMPLE_END_RESULT_TRANSFORMER |
metricNames, registry, standard_components| Constructor and Description |
|---|
QueryComponent() |
getMetricNames, getMetricRegistry, getName, init, modifyRequest, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricsSnapshot, registerMetricNamepublic static final String COMPONENT_NAME
protected static final EndResultTransformer MAIN_END_RESULT_TRANSFORMER
protected static final EndResultTransformer SIMPLE_END_RESULT_TRANSFORMER
public void prepare(ResponseBuilder rb) throws IOException
SearchComponentSearchComponent.process(org.apache.solr.handler.component.ResponseBuilder) method.
Called for every incoming request.
The place to do initialization that is request dependent.prepare in class SearchComponentrb - The ResponseBuilderIOException - If there is a low-level I/O error.protected void prepareGrouping(ResponseBuilder rb) throws IOException
IOExceptionpublic void process(ResponseBuilder rb) throws IOException
process in class SearchComponentrb - The ResponseBuilderIOException - If there is a low-level I/O error.protected void doFieldSortValues(ResponseBuilder rb, SolrIndexSearcher searcher) throws IOException
IOExceptionprotected void doPrefetch(ResponseBuilder rb) throws IOException
IOExceptionpublic int distributedProcess(ResponseBuilder rb) throws IOException
SearchComponentdistributedProcess in class SearchComponentIOExceptionprotected int groupedDistributedProcess(ResponseBuilder rb)
protected int regularDistributedProcess(ResponseBuilder rb)
public void handleResponses(ResponseBuilder rb, ShardRequest sreq)
SearchComponenthandleResponses in class SearchComponentprotected void handleGroupedResponses(ResponseBuilder rb, ShardRequest sreq)
protected void handleRegularResponses(ResponseBuilder rb, ShardRequest sreq)
public void finishStage(ResponseBuilder rb)
SearchComponentfinishStage in class SearchComponentprotected void groupedFinishStage(ResponseBuilder rb)
protected void regularFinishStage(ResponseBuilder rb)
protected void createDistributedStats(ResponseBuilder rb)
protected void updateStats(ResponseBuilder rb, ShardRequest sreq)
protected void createMainQuery(ResponseBuilder rb)
protected boolean addFL(StringBuilder fl, String field, boolean additionalAdded)
protected void mergeIds(ResponseBuilder rb, ShardRequest sreq)
protected void populateNextCursorMarkFromMergedShards(ResponseBuilder rb)
ResponseBuilder and populates the next
ResponseBuilder.setNextCursorMark(org.apache.solr.search.CursorMark) as appropriate based on the merged
sort values from individual shardsrb - A ResponseBuilder that already contains merged
ShardDocs in resultIds, may or may not be
part of a Cursor based request (method will NOOP if not needed)protected NamedList unmarshalSortValues(SortSpec sortSpec, NamedList sortFieldValues, IndexSchema schema)
protected void createRetrieveDocs(ResponseBuilder rb)
protected void returnFields(ResponseBuilder rb, ShardRequest sreq)
public String getDescription()
SolrInfoBeangetDescription in interface SolrInfoBeangetDescription in class SearchComponentpublic SolrInfoBean.Category getCategory()
SolrInfoBeangetCategory in interface SolrInfoBeangetCategory in class SearchComponentCopyright © 2000-2019 Apache Software Foundation. All Rights Reserved.