You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We currently only support sum aggregations in the various association facet implementations. I'd be really interested in extending the association facet implementations to support other aggregations, starting with max and min (in addition to sum}).
I've been sketching up a prototype of this and I think I have a reasonable way to introduce this idea. Will get a PR out for feedback soon.
I've got a couple PRs coming shortly for this. I ended up only adding "max" aggregation (to the existing "sum" functionality). I had intended to also implement average and min, but there are a couple issues with doing so:
I ran into some issues with "min" due to lots of assumptions being made in taxonomy/aggregation faceting that weights are all positive. This got me thinking that "min" aggregation might not be particularly useful.
I think "max" on its own is pretty useful. "Sum" aggregations can be heavily influenced by "long tail" effects where lots of matching documents with low weights end up dominating. "Max" has the nice property of removing this "long tail" effect in some situations (i.e., a facet value is only as good as its most highest weight document).
We currently only support
sum
aggregations in the various association facet implementations. I'd be really interested in extending the association facet implementations to support other aggregations, starting withmax
andmin
(in addition tosum
}).I've been sketching up a prototype of this and I think I have a reasonable way to introduce this idea. Will get a PR out for feedback soon.
Migrated from LUCENE-10444 by Greg Miller (@gsmiller), resolved Apr 07 2022
Pull requests: #718, #719
The text was updated successfully, but these errors were encountered: