mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-25 22:36:20 +00:00
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 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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user