[data.search.esaggs] Move 'other' bucket & inspector integrations to SearchSouce. #83652
Closed
Labels
Feature:ExpressionLanguage
Interpreter expression language (aka canvas pipeline)
Feature:Search
Querying infrastructure in Kibana
technical debt
Improvement of the software architecture and operational architecture
v7.13.0
v8.0.0
Currently the
esaggs
expression function uses the remnants of what used to be called the "courier request handler", which handles callingSearchSource
with the correct aggs.At the moment it also does some magic like updating the inspector adapters with the request/response data, and also calls an agg
postFlightRequest
if one exists (for 'other' buckets on terms aggregations).This means that folks using
esaggs
are getting the benefit of inspector integration & other bucket handling, but consumers ofSearchSource
are not. Asesaggs
is only meant to be an expression function that wrapsSearchSource
and returns tabified data, we should move this logic toSearchSource
entirely:agg.postFlightRequest
esaggs
request handlerFor more context, see the comments on #83199
The text was updated successfully, but these errors were encountered: