Make counted terms agg visible to profiling (#105049)

The counted-terms aggregation is defined in its own plugin. When other
plugins (such as the profiling plugin) want to use this aggregation,
this leads to class loader issues, such as that the aggregation class is
not recognized. By moving just the aggregation code itself to the server
module but keeping everything else (including registration) in the
`mapper-counted-keyword` module, we can use the counted-terms
aggregation also from other plugins.
This commit is contained in:
Daniel Mitterdorfer 2024-02-02 15:56:07 +01:00 committed by GitHub
parent 3f7db333c0
commit 6e15229f6e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 66 additions and 16 deletions

View file

@ -325,6 +325,7 @@ module org.elasticsearch.server {
exports org.elasticsearch.search.aggregations;
exports org.elasticsearch.search.aggregations.bucket;
exports org.elasticsearch.search.aggregations.bucket.composite;
exports org.elasticsearch.search.aggregations.bucket.countedterms;
exports org.elasticsearch.search.aggregations.bucket.filter;
exports org.elasticsearch.search.aggregations.bucket.geogrid;
exports org.elasticsearch.search.aggregations.bucket.global;