public class ScoringAggregator extends Object implements Aggregator
Aggregator which updates the weight of a category according to the
scores of the documents it was found in.| Constructor and Description |
|---|
ScoringAggregator(float[] counterArray) |
| Modifier and Type | Method and Description |
|---|---|
void |
aggregate(int ordinal)
Collect (and do whatever an implementation deems appropriate) the
category given by its ordinal.
|
boolean |
equals(Object obj) |
int |
hashCode() |
void |
setNextDoc(int docid,
float score)
Specify the document (and its score in the search) that the following
Aggregator.aggregate(int) calls will pertain to. |
public void aggregate(int ordinal)
AggregatorAggregator.setNextDoc(int, float).aggregate in interface Aggregatorpublic void setNextDoc(int docid,
float score)
AggregatorAggregator.aggregate(int) calls will pertain to.setNextDoc in interface Aggregator