Class CarrotClusteringEngine
- java.lang.Object
-
- org.apache.solr.handler.clustering.ClusteringEngine
-
- org.apache.solr.handler.clustering.SearchClusteringEngine
-
- org.apache.solr.handler.clustering.carrot2.CarrotClusteringEngine
-
public class CarrotClusteringEngine extends SearchClusteringEngine
Search results clustering engine based on Carrot2 clustering algorithms.- See Also:
- "http://project.carrot2.org"
- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Field Summary
-
Fields inherited from class org.apache.solr.handler.clustering.ClusteringEngine
DEFAULT_ENGINE_NAME, ENGINE_NAME
-
-
Constructor Summary
Constructors Constructor Description CarrotClusteringEngine()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
cluster(org.apache.lucene.search.Query query, SolrDocumentList solrDocList, Map<SolrDocument,Integer> docIds, SolrQueryRequest sreq)
Do the clustering, return a clusters structure to be appended toSolrQueryResponse
.protected Set<String>
getFieldsToLoad(SolrQueryRequest sreq)
Returns the set of field names to load.String
init(NamedList config, SolrCore core)
boolean
isAvailable()
-
Methods inherited from class org.apache.solr.handler.clustering.ClusteringEngine
getName
-
-
-
-
Method Detail
-
isAvailable
public boolean isAvailable()
- Specified by:
isAvailable
in classClusteringEngine
-
init
public String init(NamedList config, SolrCore core)
- Overrides:
init
in classClusteringEngine
-
cluster
public Object cluster(org.apache.lucene.search.Query query, SolrDocumentList solrDocList, Map<SolrDocument,Integer> docIds, SolrQueryRequest sreq)
Description copied from class:SearchClusteringEngine
Do the clustering, return a clusters structure to be appended toSolrQueryResponse
.- Specified by:
cluster
in classSearchClusteringEngine
-
getFieldsToLoad
protected Set<String> getFieldsToLoad(SolrQueryRequest sreq)
Description copied from class:SearchClusteringEngine
Returns the set of field names to load. Concrete classes can override this method if needed. Default implementation returns null, that is, all stored fields are loaded.- Overrides:
getFieldsToLoad
in classSearchClusteringEngine
- Returns:
- The set of field names to load.
-
-