public class CarrotClusteringEngine extends SearchClusteringEngine
DEFAULT_ENGINE_NAME, ENGINE_NAME
Constructor and Description |
---|
CarrotClusteringEngine() |
Modifier and Type | Method and Description |
---|---|
Object |
cluster(Query query,
SolrDocumentList solrDocList,
Map<SolrDocument,Integer> docIds,
SolrQueryRequest sreq)
Do the clustering, return a clusters structure to be appended to
SolrQueryResponse . |
protected Set<String> |
getFieldsToLoad(SolrQueryRequest sreq)
Returns the set of field names to load.
|
String |
init(NamedList config,
SolrCore core) |
boolean |
isAvailable() |
getName
public boolean isAvailable()
isAvailable
in class ClusteringEngine
public String init(NamedList config, SolrCore core)
init
in class ClusteringEngine
public Object cluster(Query query, SolrDocumentList solrDocList, Map<SolrDocument,Integer> docIds, SolrQueryRequest sreq)
SearchClusteringEngine
SolrQueryResponse
.cluster
in class SearchClusteringEngine
protected Set<String> getFieldsToLoad(SolrQueryRequest sreq)
SearchClusteringEngine
getFieldsToLoad
in class SearchClusteringEngine
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.