org.apache.solr.handler.clustering.carrot2
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.
Output from this class is subject to change.
- See Also:
- "http://project.carrot2.org"
|
Method Summary |
Object |
cluster(Query query,
org.apache.solr.search.DocList docList,
org.apache.solr.request.SolrQueryRequest sreq)
Deprecated. |
Object |
cluster(Query query,
org.apache.solr.common.SolrDocumentList solrDocList,
Map<org.apache.solr.common.SolrDocument,Integer> docIds,
org.apache.solr.request.SolrQueryRequest sreq)
|
protected Set<String> |
getFieldsToLoad(org.apache.solr.request.SolrQueryRequest sreq)
Returns the set of field names to load. |
String |
init(org.apache.solr.common.util.NamedList config,
org.apache.solr.core.SolrCore core)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CarrotClusteringEngine
public CarrotClusteringEngine()
cluster
@Deprecated
public Object cluster(Query query,
org.apache.solr.search.DocList docList,
org.apache.solr.request.SolrQueryRequest sreq)
- Deprecated.
- Specified by:
cluster in class SearchClusteringEngine
cluster
public Object cluster(Query query,
org.apache.solr.common.SolrDocumentList solrDocList,
Map<org.apache.solr.common.SolrDocument,Integer> docIds,
org.apache.solr.request.SolrQueryRequest sreq)
- Specified by:
cluster in class SearchClusteringEngine
init
public String init(org.apache.solr.common.util.NamedList config,
org.apache.solr.core.SolrCore core)
- Overrides:
init in class ClusteringEngine
getFieldsToLoad
protected Set<String> getFieldsToLoad(org.apache.solr.request.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 class SearchClusteringEngine
- Returns:
- set of field names to load
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.