elastic / elasticsearch

Free and Open Source, Distributed, RESTful Search Engine
https://www.elastic.co/products/elasticsearch
Other
69.94k stars 24.74k forks source link

Centralize aggregations into a module #90283

Open martijnvg opened 2 years ago

martijnvg commented 2 years ago

This is a meta issue tracks to work to be done for centralising most aggregations in a dedicated module.

The main benefits for centralizing aggregations are:

Also aggregations from other modules can be moved to the new aggregation module. But this depends on the license level of these aggregations, whether these aggregations pull in heavy dependencies or require additional security permissions.

When moving an aggregation both production implementation code (builder, aggregator, aggregator factory, bucket representation) should be moved and tests (unit, integration and yaml).

Main tasks

Bucket & metric aggregations

Aggregations that currently exist in server module and can be moved to .modules/aggregations:

Pipeline aggregations

Pipeline aggregations that currently exist in server module and can be moved to .modules/aggregations:

Geo aggregations

The geo aggregations should maybe be moved to the existing spatial module or a new module that groups geo aggregations together. This is yet undecided.

Other tasks

Other tasks that need completion before closing this meta issue.

elasticsearchmachine commented 2 years ago

Pinging @elastic/es-analytics-geo (Team:Analytics)

wchaparro commented 1 year ago

@martijnvg Can we update this one / close it out at this time?