public class AssertingBulkScorer extends BulkScorer
| Modifier and Type | Method and Description |
|---|---|
BulkScorer |
getIn() |
void |
score(Collector collector)
Scores and collects all matching documents.
|
boolean |
score(Collector collector,
int max)
Collects matching documents in a range.
|
static boolean |
shouldWrap(BulkScorer inScorer) |
String |
toString() |
static BulkScorer |
wrap(Random random,
BulkScorer other) |
public static BulkScorer wrap(Random random, BulkScorer other)
public static boolean shouldWrap(BulkScorer inScorer)
public BulkScorer getIn()
public void score(Collector collector) throws IOException
BulkScorerscore in class BulkScorercollector - The collector to which all matching documents are passed.IOExceptionpublic boolean score(Collector collector, int max) throws IOException
BulkScorerscore in class BulkScorercollector - The collector to which all matching documents are passed.max - Score up to, but not including, this docIOExceptionCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.