Interface CountDistinctValuesAggregationFieldStep<SR,PDF extends TypedSearchPredicateFactory<SR>>
- Type Parameters:
SR- Scope root type.PDF- The type of factory used to create predicates inAggregationFilterStep.filter(Function).
@Incubating
public interface CountDistinctValuesAggregationFieldStep<SR,PDF extends TypedSearchPredicateFactory<SR>>
The initial step in a "count distinct" aggregation definition, where the target field can be set.
-
Method Summary
Modifier and TypeMethodDescriptionTarget the given field in the count distinct values aggregation.default CountDistinctValuesAggregationOptionsStep<SR, ?, PDF> field(CountAggregationFieldReference<SR> fieldReference) Target the given field in the count distinct values aggregation.
-
Method Details
-
field
Target the given field in the count distinct values aggregation.- Parameters:
fieldPath- The path to the index field to aggregate.- Returns:
- The next step.
-
field
@Incubating default CountDistinctValuesAggregationOptionsStep<SR,?, fieldPDF> (CountAggregationFieldReference<SR> fieldReference) Target the given field in the count distinct values aggregation.- Parameters:
fieldReference- The field reference representing a definition of the index field to aggregate.- Returns:
- The next step.
-