Interface LuceneSearchAggregation<A>
-
- All Superinterfaces:
SearchAggregation<A>
- All Known Implementing Classes:
AbstractLuceneBucketAggregation,AbstractLuceneFacetsBasedTermsAggregation,AbstractLuceneNestableAggregation,LuceneNumericRangeAggregation,LuceneNumericTermsAggregation,LuceneTextTermsAggregation
public interface LuceneSearchAggregation<A> extends SearchAggregation<A>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Aextract(AggregationExtractContext context)Extract the result of the aggregation from the response.Set<String>getIndexNames()voidrequest(AggregationRequestContext context)Request the collection of per-document data that will be used inextract(AggregationExtractContext), making sure that the requirements for this projection are met.
-
-
-
Method Detail
-
request
void request(AggregationRequestContext context)
Request the collection of per-document data that will be used inextract(AggregationExtractContext), making sure that the requirements for this projection are met.- Parameters:
context- A context that will share its state with the context passed toextract(AggregationExtractContext).
-
extract
A extract(AggregationExtractContext context) throws IOException
Extract the result of the aggregation from the response.- Parameters:
context- The extract context, to extract information from the response's JSON body or retrieve information that was stored earlier inrequest(AggregationRequestContext).- Returns:
- The aggregation result extracted from the response.
- Throws:
IOException
-
-