Ordinals were omitted from fielddata cache size calculation if field has more than one term.

Closes #2882
This commit is contained in:
Martijn van Groningen 2013-04-10 14:50:07 +02:00
parent 637eeacb20
commit 4fd8c2c6d2
1 changed files with 1 additions and 1 deletions

View File

@ -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));