Skip to content

Commit

Permalink
Ordinals were omitted from fielddata cache size calculation if field …
Browse files Browse the repository at this point in the history
…has more than one term.

Closes elastic#2882
  • Loading branch information
martijnvg committed Apr 10, 2013
1 parent 637eeac commit 4fd8c2c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public final class SparseMultiArrayOrdinals implements Ordinals {
private final int numOrds;
private final int maxOrd;
private final int numDocs;
private long size;
private long size = -1;

public SparseMultiArrayOrdinals(OrdinalsBuilder builder, int maxSize) {
int blockShift = Math.min(floorPow2(builder.getTotalNumOrds() << 1), floorPow2(maxSize));
Expand Down

0 comments on commit 4fd8c2c

Please sign in to comment.