We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bafd903 commit d7b39c5Copy full SHA for d7b39c5
server/src/main/java/org/opensearch/search/aggregations/metrics/CardinalityAggregator.java
@@ -458,8 +458,7 @@ public int nextDoc() throws IOException {
458
459
@Override
460
public long cost() {
461
- // don't expect this to be called based on its usage in DefaultBulkScorer
462
- throw new UnsupportedOperationException();
+ return queue.top() == null ? 0 : queue.top().approximation.cost();
463
}
464
465
0 commit comments