zio-elasticsearch icon indicating copy to clipboard operation
zio-elasticsearch copied to clipboard

Extra letters in aggregations responses

Open dbulaja98 opened this issue 1 year ago • 3 comments

There are sometimes extra letters for terms and for percentiles aggregations in the elasticsearch response. Something like this happens: sterms#aggName

dbulaja98 avatar Nov 14 '23 14:11 dbulaja98

I did some research on Percentiles and Terms. It appears that there is no error, but rather the Percentiles and Percentile Ranks have a keyed parameter. The choice between tdigest_percentiles and hdr_percentiles as a response depends on this parameter. Since we didn't use the keyed parameter, it defaults to tdigest. Therefore it has those extra letters in response.

As for Terms, it seems that it can accept both integers and strings, and when it receives a string, its response is referred to as sterms. The message "Result of the TermsAggregator when the field is a String" is mentioned for string_terms.

vanjaftn avatar Nov 30 '23 14:11 vanjaftn

Thank you Vanja, great job! 🚀

dbulaja98 avatar Nov 30 '23 14:11 dbulaja98

We should consider adjusting aggregations responses.

dbulaja98 avatar Nov 30 '23 14:11 dbulaja98