public class ClusteringComponent extends SearchComponent implements SolrCoreAware
See Solr example for configuration examples.
SolrInfoBean.Category, SolrInfoBean.Group
Modifier and Type | Field and Description |
---|---|
static String |
COMPONENT_NAME
Base name for all component parameters.
|
metricNames, registry, standard_components
Constructor and Description |
---|
ClusteringComponent() |
Modifier and Type | Method and Description |
---|---|
static SolrDocumentList |
docListToSolrDocumentList(DocList docs,
SolrIndexSearcher searcher,
Set<String> fields,
Map<SolrDocument,Integer> ids)
Convert a DocList to a SolrDocumentList
The optional param "ids" is populated with the lucene document id
for each SolrDocument.
|
void |
finishStage(ResponseBuilder rb) |
String |
getDescription() |
void |
inform(SolrCore core) |
void |
init(NamedList args) |
void |
modifyRequest(ResponseBuilder rb,
SearchComponent who,
ShardRequest sreq) |
void |
prepare(ResponseBuilder rb) |
void |
process(ResponseBuilder rb) |
distributedProcess, getCategory, getMetricNames, getMetricRegistry, getName, handleResponses, setName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMetricsSnapshot, registerMetricName
public static final String COMPONENT_NAME
public static SolrDocumentList docListToSolrDocumentList(DocList docs, SolrIndexSearcher searcher, Set<String> fields, Map<SolrDocument,Integer> ids) throws IOException
docs
- The DocList
to convertsearcher
- The SolrIndexSearcher
to use to load the docs from the Lucene indexfields
- The names of the Fields to loadids
- A map to store the ids of the docsSolrDocumentList
containing all the loaded docsIOException
- if there was a problem loading the docspublic void init(NamedList args)
init
in interface NamedListInitializedPlugin
init
in class SearchComponent
public void inform(SolrCore core)
inform
in interface SolrCoreAware
public void prepare(ResponseBuilder rb) throws IOException
prepare
in class SearchComponent
IOException
public void process(ResponseBuilder rb) throws IOException
process
in class SearchComponent
IOException
public void modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
modifyRequest
in class SearchComponent
public void finishStage(ResponseBuilder rb)
finishStage
in class SearchComponent
public String getDescription()
getDescription
in interface SolrInfoBean
getDescription
in class SearchComponent
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.