public class QueryComponent extends SearchComponent
Modifier and Type | Class and Description |
---|---|
protected static class |
QueryComponent.FakeScorer
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, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricsSnapshot, registerMetricName
public 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
SearchComponent
SearchComponent.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 SearchComponent
rb
- The ResponseBuilder
IOException
- If there is a low-level I/O error.protected void prepareGrouping(ResponseBuilder rb) throws IOException
IOException
public void process(ResponseBuilder rb) throws IOException
process
in class SearchComponent
rb
- The ResponseBuilder
IOException
- If there is a low-level I/O error.protected void doFieldSortValues(ResponseBuilder rb, SolrIndexSearcher searcher) throws IOException
IOException
protected void doPrefetch(ResponseBuilder rb) throws IOException
IOException
public int distributedProcess(ResponseBuilder rb) throws IOException
SearchComponent
distributedProcess
in class SearchComponent
IOException
protected int groupedDistributedProcess(ResponseBuilder rb)
protected int regularDistributedProcess(ResponseBuilder rb)
public void handleResponses(ResponseBuilder rb, ShardRequest sreq)
SearchComponent
handleResponses
in class SearchComponent
protected void handleGroupedResponses(ResponseBuilder rb, ShardRequest sreq)
protected void handleRegularResponses(ResponseBuilder rb, ShardRequest sreq)
public void finishStage(ResponseBuilder rb)
SearchComponent
finishStage
in class SearchComponent
protected 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()
SolrInfoBean
getDescription
in interface SolrInfoBean
getDescription
in class SearchComponent
public SolrInfoBean.Category getCategory()
SolrInfoBean
getCategory
in interface SolrInfoBean
getCategory
in class SearchComponent
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.