diff --git a/modules/grouping/src/java/org/apache/lucene/search/grouping/function/FunctionAllGroupHeadsCollector.java b/modules/grouping/src/java/org/apache/lucene/search/grouping/function/FunctionAllGroupHeadsCollector.java index 3755ad64454..19a21544579 100644 --- a/modules/grouping/src/java/org/apache/lucene/search/grouping/function/FunctionAllGroupHeadsCollector.java +++ b/modules/grouping/src/java/org/apache/lucene/search/grouping/function/FunctionAllGroupHeadsCollector.java @@ -105,8 +105,8 @@ public class FunctionAllGroupHeadsCollector extends AbstractAllGroupHeadsCollect public void setNextReader(AtomicReaderContext context) throws IOException { this.readerContext = context; - FunctionValues docValues = groupBy.getValues(vsContext, context); - filler = docValues.getValueFiller(); + FunctionValues values = groupBy.getValues(vsContext, context); + filler = values.getValueFiller(); mval = filler.getValue(); for (GroupHead groupHead : groups.values()) {