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, setNameclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMetricsSnapshot, registerMetricNamepublic 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 NamedListInitializedPlugininit in class SearchComponentpublic void inform(SolrCore core)
inform in interface SolrCoreAwarepublic void prepare(ResponseBuilder rb) throws IOException
prepare in class SearchComponentIOExceptionpublic void process(ResponseBuilder rb) throws IOException
process in class SearchComponentIOExceptionpublic void modifyRequest(ResponseBuilder rb, SearchComponent who, ShardRequest sreq)
modifyRequest in class SearchComponentpublic void finishStage(ResponseBuilder rb)
finishStage in class SearchComponentpublic String getDescription()
getDescription in interface SolrInfoBeangetDescription in class SearchComponentCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.