Class Cluster
- java.lang.Object
-
- org.apache.solr.client.solrj.response.Cluster
-
public class Cluster extends Object
This class represents a cluster of Solr Docs . The cluster is produced from a set of Solr documents from the results. It is a direct mapping for the Json object Solr is returning.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)List<String>getDocs()List<String>getLabels()doublegetScore()List<Cluster>getSubclusters()inthashCode()booleanisOtherTopics()voidsetDocs(List<String> docIds)voidsetLabels(List<String> labels)voidsetScore(double score)
-
-
-
Constructor Detail
-
Cluster
public Cluster(List<String> labels, double score, List<String> docIds, List<Cluster> subclusters, boolean otherTopics)
- Parameters:
labels- the list of human readable labels associated to the clusterscore- the score produced by the clustering algorithm for the current clusterdocIds- the list of document Ids belonging to the cluster
-
-
Method Detail
-
getScore
public double getScore()
-
setScore
public void setScore(double score)
-
isOtherTopics
public boolean isOtherTopics()
- Returns:
- If
true, the cluster contains references to documents that are not semantically associated and form a group of documents not related to any other cluster (or themselves).
-
-