org.apache.solr.handler.clustering
Class ClusteringComponent
java.lang.Object
org.apache.solr.handler.component.SearchComponent
org.apache.solr.handler.clustering.ClusteringComponent
- All Implemented Interfaces:
- SolrInfoMBean, NamedListInitializedPlugin, SolrCoreAware
public class ClusteringComponent
- extends SearchComponent
- implements SolrCoreAware
Provides a plugin for performing cluster analysis. This can either be applied to
search results (e.g., via Carrot2) or for
clustering documents (e.g., via Mahout).
See Solr example for configuration examples.
- WARNING: This API is experimental and might change in incompatible ways in the next release.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPONENT_NAME
public static final String COMPONENT_NAME
- Base name for all component parameters. This name is also used to
register this component with SearchHandler.
- See Also:
- Constant Field Values
ClusteringComponent
public ClusteringComponent()
init
public void init(NamedList args)
- Specified by:
init
in interface NamedListInitializedPlugin
- Overrides:
init
in class SearchComponent
inform
public void inform(SolrCore core)
- Specified by:
inform
in interface SolrCoreAware
prepare
public void prepare(ResponseBuilder rb)
throws IOException
- Specified by:
prepare
in class SearchComponent
- Throws:
IOException
process
public void process(ResponseBuilder rb)
throws IOException
- Specified by:
process
in class SearchComponent
- Throws:
IOException
modifyRequest
public void modifyRequest(ResponseBuilder rb,
SearchComponent who,
ShardRequest sreq)
- Overrides:
modifyRequest
in class SearchComponent
finishStage
public void finishStage(ResponseBuilder rb)
- Overrides:
finishStage
in class SearchComponent
getDescription
public String getDescription()
- Specified by:
getDescription
in interface SolrInfoMBean
- Specified by:
getDescription
in class SearchComponent
getSource
public String getSource()
- Specified by:
getSource
in interface SolrInfoMBean
- Specified by:
getSource
in class SearchComponent
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.