Interface LuceneAggregatorFactory
- All Known Subinterfaces:
LuceneAggregatorRegistry
- All Known Implementing Classes:
DefaultLuceneAggregatorRegistry
public interface LuceneAggregatorFactory
Factory for creating
LuceneAggregator
s.- Since:
- 10.5
-
Method Summary
Modifier and TypeMethodDescriptionbuildAggregator
(SearchRequest searchRequest, Aggregation aggregation) Build anLuceneAggregator
for the givenAggregation
.default MultiAggregator
mapAggregationsRequest
(SearchRequest searchRequest) Map the givenSearchRequest
to a set ofLuceneAggregator
s.mapAggregationsRequest
(SearchRequest searchRequest, AggregationsRequest aggregationsRequest) Map the givenSearchRequest
to a set ofLuceneAggregator
s.
-
Method Details
-
mapAggregationsRequest
Map the givenSearchRequest
to a set ofLuceneAggregator
s.- Parameters:
searchRequest
- the request to map- Returns:
- a multi-aggregator for the requested aggregations
-
mapAggregationsRequest
MultiAggregator mapAggregationsRequest(SearchRequest searchRequest, AggregationsRequest aggregationsRequest) Map the givenSearchRequest
to a set ofLuceneAggregator
s.- Parameters:
searchRequest
- the request to mapaggregationsRequest
- the aggregations to map- Returns:
- a multi-aggregator for the requested aggregations
-
buildAggregator
LuceneAggregator<AggregationResult> buildAggregator(SearchRequest searchRequest, Aggregation aggregation) Build anLuceneAggregator
for the givenAggregation
.- Parameters:
searchRequest
- the search request that is being executedaggregation
- the aggregation to build an aggregator for- Returns:
- the aggregator for the given aggregation
-