Interface SumAggregationFieldStep<PDF extends SearchPredicateFactory>

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

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

    • field

      default <F> SumAggregationOptionsStep<?,PDF,F> field(String fieldPath, Class<F> type)
      Target the given field in the sum 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> SumAggregationOptionsStep<?,PDF,F> field(String fieldPath, Class<F> type, ValueModel valueModel)
      Target the given field in the sum 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 terms values, used to determine how term values fetched from the backend should be converted. See ValueModel.
      Returns:
      The next step.