Skip to content

Commit

Permalink
Fixed an ArrayIndexOutOfBoundsException bug in BitSetFilter.
Browse files Browse the repository at this point in the history
  • Loading branch information
Baoqiu Cui committed Mar 16, 2012
1 parent ea2bb68 commit fb0df57
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public double getFacetSelectivity(BoboIndexReader reader) {
int[] frequencies = dataCache.freqs;
double selectivity = 0;
int accumFreq = 0;
int index = openBitSet.nextSetBit(-1);
int index = openBitSet.nextSetBit(0);
while (index >= 0) {
accumFreq += frequencies[index];
index = openBitSet.nextSetBit(index);
Expand Down

0 comments on commit fb0df57

Please sign in to comment.