Ordinals were omitted from fielddata cache size calculation if field has more than one term.
Closes #2882
This commit is contained in:
parent
637eeacb20
commit
4fd8c2c6d2
|
@ -35,7 +35,7 @@ public final class SparseMultiArrayOrdinals implements Ordinals {
|
||||||
private final int numOrds;
|
private final int numOrds;
|
||||||
private final int maxOrd;
|
private final int maxOrd;
|
||||||
private final int numDocs;
|
private final int numDocs;
|
||||||
private long size;
|
private long size = -1;
|
||||||
|
|
||||||
public SparseMultiArrayOrdinals(OrdinalsBuilder builder, int maxSize) {
|
public SparseMultiArrayOrdinals(OrdinalsBuilder builder, int maxSize) {
|
||||||
int blockShift = Math.min(floorPow2(builder.getTotalNumOrds() << 1), floorPow2(maxSize));
|
int blockShift = Math.min(floorPow2(builder.getTotalNumOrds() << 1), floorPow2(maxSize));
|
||||||
|
|
Loading…
Reference in New Issue