Class MaxAggregator

    • Method Detail

      • needsScores

        public boolean needsScores()
        Description copied from class: AggregatorBase
        Most aggregators don't need scores, make sure to extend this method if your aggregator needs them.
        Specified by:
        needsScores in interface
        needsScores in class AggregatorBase
      • findLeafMaxValue

        public static java.lang.Number findLeafMaxValue​(org.apache.lucene.index.LeafReader reader,
                                                        java.lang.String fieldName,
                                                        java.util.function.Function<byte[],​java.lang.Number> converter)
        Returns the maximum value indexed in the fieldName field or null if the value cannot be inferred from the indexed PointValues.