org.apache.solr.handler.clustering
Class ClusteringComponent

java.lang.Object
  extended by org.apache.solr.handler.component.SearchComponent
      extended by org.apache.solr.handler.clustering.ClusteringComponent
All Implemented Interfaces:
org.apache.solr.core.SolrInfoMBean, org.apache.solr.util.plugin.NamedListInitializedPlugin, org.apache.solr.util.plugin.SolrCoreAware

public class ClusteringComponent
extends org.apache.solr.handler.component.SearchComponent
implements org.apache.solr.util.plugin.SolrCoreAware

Provide a plugin for clustering results. Can either be for search results (i.e. via Carrot2) or for clustering documents (i.e. via Mahout)

This engine is experimental. Output from this engine is subject to change in future releases.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoMBean
org.apache.solr.core.SolrInfoMBean.Category
 
Field Summary
static String COMPONENT_NAME
          Base name for all spell checker query parameters.
 
Constructor Summary
ClusteringComponent()
           
 
Method Summary
 String getDescription()
           
 Map<String,SearchClusteringEngine> getSearchClusteringEngines()
           
 String getSource()
           
 String getSourceId()
           
 String getVersion()
           
 void inform(org.apache.solr.core.SolrCore core)
           
 void init(org.apache.solr.common.util.NamedList args)
           
 void prepare(org.apache.solr.handler.component.ResponseBuilder rb)
           
 void process(org.apache.solr.handler.component.ResponseBuilder rb)
           
 
Methods inherited from class org.apache.solr.handler.component.SearchComponent
distributedProcess, finishStage, getCategory, getDocs, getName, getStatistics, handleResponses, modifyRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPONENT_NAME

public static final String COMPONENT_NAME
Base name for all spell checker query parameters. This name is also used to register this component with SearchHandler.

See Also:
Constant Field Values
Constructor Detail

ClusteringComponent

public ClusteringComponent()
Method Detail

prepare

public void prepare(org.apache.solr.handler.component.ResponseBuilder rb)
             throws IOException
Specified by:
prepare in class org.apache.solr.handler.component.SearchComponent
Throws:
IOException

process

public void process(org.apache.solr.handler.component.ResponseBuilder rb)
             throws IOException
Specified by:
process in class org.apache.solr.handler.component.SearchComponent
Throws:
IOException

init

public void init(org.apache.solr.common.util.NamedList args)
Specified by:
init in interface org.apache.solr.util.plugin.NamedListInitializedPlugin
Overrides:
init in class org.apache.solr.handler.component.SearchComponent

inform

public void inform(org.apache.solr.core.SolrCore core)
Specified by:
inform in interface org.apache.solr.util.plugin.SolrCoreAware

getSearchClusteringEngines

public Map<String,SearchClusteringEngine> getSearchClusteringEngines()

getDescription

public String getDescription()
Specified by:
getDescription in interface org.apache.solr.core.SolrInfoMBean
Specified by:
getDescription in class org.apache.solr.handler.component.SearchComponent

getVersion

public String getVersion()
Specified by:
getVersion in interface org.apache.solr.core.SolrInfoMBean
Specified by:
getVersion in class org.apache.solr.handler.component.SearchComponent

getSourceId

public String getSourceId()
Specified by:
getSourceId in interface org.apache.solr.core.SolrInfoMBean
Specified by:
getSourceId in class org.apache.solr.handler.component.SearchComponent

getSource

public String getSource()
Specified by:
getSource in interface org.apache.solr.core.SolrInfoMBean
Specified by:
getSource in class org.apache.solr.handler.component.SearchComponent


Copyright © 2009 Apache Software Foundation. All Rights Reserved.