Interface TermsAggregationFieldStep<PDF extends SearchPredicateFactory>
- Type Parameters:
PDF
- The type of factory used to create predicates inAggregationFilterStep.filter(Function)
.
public interface TermsAggregationFieldStep<PDF extends SearchPredicateFactory>
The initial step in a "terms" aggregation definition, where the target field can be set.
-
Method Summary
Modifier and TypeMethodDescriptiondefault <F> TermsAggregationOptionsStep
<?, PDF, F, Map<F, Long>> Target the given field in the terms aggregation.default <F> TermsAggregationOptionsStep
<?, PDF, F, Map<F, Long>> field
(String fieldPath, Class<F> type, ValueConvert convert) Deprecated.<F> TermsAggregationOptionsStep
<?, PDF, F, Map<F, Long>> field
(String fieldPath, Class<F> type, ValueModel valueModel) Target the given field in the terms aggregation.
-
Method Details
-
field
Target the given field in the terms 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
@Deprecated default <F> TermsAggregationOptionsStep<?,PDF, fieldF, Map<F, Long>> (String fieldPath, Class<F> type, ValueConvert convert) Deprecated.Usefield(String, Class, ValueModel)
instead.Target the given field in the terms 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.convert
- Controls how the term values fetched from the backend should be converted. SeeValueConvert
.- Returns:
- The next step.
-
field
<F> TermsAggregationOptionsStep<?,PDF, fieldF, Map<F, Long>> (String fieldPath, Class<F> type, ValueModel valueModel) Target the given field in the terms 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. SeeValueModel
.- Returns:
- The next step.
-
field(String, Class, ValueModel)
instead.