Interface MaxAggregationFieldStep<SR,PDF extends SearchPredicateFactory<SR>>

Type Parameters:
SR - Scope root type.
PDF - The type of factory used to create predicates in AggregationFilterStep.filter(Function).

@Incubating public interface MaxAggregationFieldStep<SR,PDF extends SearchPredicateFactory<SR>>
The initial step in a "min" aggregation definition, where the target field can be set.
  • Method Details

    • field

      default <F> MaxAggregationOptionsStep<SR,?,PDF,F> field(String fieldPath, Class<F> type)
      Target the given field in the min aggregation.
      Type Parameters:
      F - The type of field values.
      Parameters:
      fieldPath - The path to the index field to aggregate.
      type - The type of field values.
      Returns:
      The next step.
    • field

      <F> MaxAggregationOptionsStep<SR,?,PDF,F> field(String fieldPath, Class<F> type, ValueModel valueModel)
      Target the given field in the min aggregation.
      Type Parameters:
      F - The type of field values.
      Parameters:
      fieldPath - The path to the index field to aggregate.
      type - The type of field values.
      valueModel - The model of aggregation values, used to determine how computed aggregation value should be converted. See ValueModel.
      Returns:
      The next step.
    • field

      @Incubating default <F> MaxAggregationOptionsStep<SR,?,PDF,F> field(MaxAggregationFieldReference<SR,F> fieldReference)
      Target the given field in the avg aggregation.
      Type Parameters:
      F - The type of field values.
      Parameters:
      fieldReference - The field reference representing a definition of the index field to aggregate.
      Returns:
      The next step.