diff --git a/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java b/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java index 80f25cae..55b95b01 100644 --- a/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java +++ b/zulia-server/src/main/java/io/zulia/server/search/aggregation/ordinal/OrdinalBuffer.java @@ -18,7 +18,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) { if (ordinalBuffer.hasRemaining()) { int storedDimOrdinal = -1; int storedOrdinalLengthForDim = 0; - outer: + for (int requestedDimOrdinal : requestDimensionOrdinals) { while (storedDimOrdinal < requestedDimOrdinal) { @@ -27,7 +27,7 @@ public void handleFacets(OrdinalConsumer ordinalConsumer) { } if (!ordinalBuffer.hasRemaining()) { - break outer; + return; } storedDimOrdinal = ordinalBuffer.get();