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 docID,
float score,
IntsRef ordinals)
Aggregate the ordinals of the given document ID (and its score).
|
boolean |
equals(Object obj) |
int |
hashCode() |
boolean |
setNextReader(AtomicReaderContext context)
Sets the
AtomicReaderContext for which
Aggregator.aggregate(int, float, IntsRef) calls will be made. |
public void aggregate(int docID, float score, IntsRef ordinals) throws IOException
Aggregator
aggregate
in interface Aggregator
IOException
public boolean setNextReader(AtomicReaderContext context) throws IOException
Aggregator
AtomicReaderContext
for which
Aggregator.aggregate(int, float, IntsRef)
calls will be made. If this method
returns false, Aggregator.aggregate(int, float, IntsRef)
should not be called
for this reader.setNextReader
in interface Aggregator
IOException
Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.