Interface TermsAggregationValueStep<SR,S extends TermsAggregationOptionsStep<SR,?,PDF,F,A>,PDF extends TypedSearchPredicateFactory<SR>,F,A>
- Type Parameters:
SR- Scope root type.PDF- The type of factory used to create predicates inAggregationFilterStep.filter(Function).F- The type of the targeted field.
- All Superinterfaces:
AggregationFilterStep<SR,,S, PDF> AggregationFinalStep<A>,TermsAggregationOptionsStep<SR,S, PDF, F, A>
@Incubating
public interface TermsAggregationValueStep<SR,S extends TermsAggregationOptionsStep<SR,?,PDF,F,A>,PDF extends TypedSearchPredicateFactory<SR>,F,A>
extends TermsAggregationOptionsStep<SR,S,PDF,F,A>
The step in a "terms" aggregation definition where the aggregation value for the term can be set.
-
Method Summary
Modifier and TypeMethodDescriptionvalue(AggregationFinalStep<T> aggregation) Specify which aggregation to apply to the documents with same terms.value(SearchAggregation<T> aggregation) Specify which aggregation to apply to the documents with same terms.Methods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.AggregationFilterStep
filter, filter, filterMethods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.AggregationFinalStep
toAggregationMethods inherited from interface org.hibernate.search.engine.search.aggregation.dsl.TermsAggregationOptionsStep
maxTermCount, minDocumentCount, orderByCountAscending, orderByCountDescending, orderByTermAscending, orderByTermDescending
-
Method Details
-
value
@Incubating <T> TermsAggregationOptionsStep<SR,?, valuePDF, F, Map<F, T>> (SearchAggregation<T> aggregation) Specify which aggregation to apply to the documents with same terms.This allows to "group" the documents by "terms" and then apply one of the aggregations from
SearchAggregationFactoryto the documents in that group.- Type Parameters:
T- The type of the aggregated results for a term.- Parameters:
aggregation- The aggregation to apply to the documents for each term.- Returns:
- The next step in terms aggregation definition.
-
value
@Incubating default <T> TermsAggregationOptionsStep<SR,?, valuePDF, F, Map<F, T>> (AggregationFinalStep<T> aggregation) Specify which aggregation to apply to the documents with same terms.This allows to "group" the documents by "terms" and then apply one of the aggregations from
SearchAggregationFactoryto the documents in that group.- Type Parameters:
T- The type of the aggregated results for a term.- Parameters:
aggregation- The aggregation to apply to the documents for each term.- Returns:
- The next step in terms aggregation definition.
-