Interface TermsAggregationFieldStep<PDF extends SearchPredicateFactory>

    • Method Detail

      • field

        default <F> TermsAggregationOptionsStep<?,​PDF,​F,​Map<F,​Long>> field​(String fieldPath,
                                                                                                   Class<F> type)
        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

        <F> TermsAggregationOptionsStep<?,​PDF,​F,​Map<F,​Long>> field​(String fieldPath,
                                                                                           Class<F> type,
                                                                                           ValueConvert convert)
        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 ranges passed to the next steps and fetched from the backend should be converted. See ValueConvert.
        Returns:
        The next step.