Use collectExistingBucket in GlobalOrdinalsSignificantTermsAggregator.WithHash.

Relates to #5955.
This commit is contained in:
Martijn van Groningen 2014-04-30 23:24:33 +07:00
parent 2663d04a96
commit 5a0070071a
1 changed files with 3 additions and 1 deletions

View File

@ -153,10 +153,12 @@ public class GlobalOrdinalsSignificantTermsAggregator extends GlobalOrdinalsStri
long bucketOrd = bucketOrds.add(globalOrd);
if (bucketOrd < 0) {
bucketOrd = -1 - bucketOrd;
}
collectExistingBucket(doc, bucketOrd);
} else {
collectBucket(doc, bucketOrd);
}
}
}
@Override
protected long getBucketOrd(long termOrd) {