OpenSearch/x-pack/plugin/analytics/src
Christos Soulios d9f0245b10
[7.x] Implement stats aggregation for string terms (#49097)
Backport of #47468 to 7.x

This PR adds a new metric aggregation called string_stats that operates on string terms of a document and returns the following:

min_length: The length of the shortest term
max_length: The length of the longest term
avg_length: The average length of all terms
distribution: The probability distribution of all characters appearing in all terms
entropy: The total Shannon entropy value calculated for all terms

This aggregation has been implemented as an analytics plugin.
2019-11-15 14:36:21 +02:00
..
main [7.x] Implement stats aggregation for string terms (#49097) 2019-11-15 14:36:21 +02:00
test/java/org/elasticsearch/xpack/analytics [7.x] Implement stats aggregation for string terms (#49097) 2019-11-15 14:36:21 +02:00