question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Faceted Search: Other aggregations than "count"?

See original GitHub issue

While using the new Faceted Search feature, I saw that it currently only supports counting the items that were grouped. Are there plans for supporting other kinds of aggregations like SUM or something like that?

My use case is that in addition to counting items in specific buckets (= facets), I might also have to sum up the values of a specific field in my entity, e.g. an amount field - similar to how I would use SUM(amount) together with GROUP BY accountID in SQL.

Please let me know if you need more information about my use case.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
remmeiercommented, Sep 23, 2019

in principal nothing is holding this back. The one thing currently missing is the information after what to “summ up”. Could be a parameter to the request, or could be something predefined with annotations.

0reactions
nwinklercommented, Sep 27, 2019

Nothing for ES so far. I’ve actually been playing around with Redisearch, this worked quite well with the faceted search… ES should work in a similar way, I assume.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to handle facet filtering and corresponding ...
The CATEGORIES facet will have count against Frieght and other counts will be zero. Though the COLORS facet will have expected counts. To...
Read more >
Paging with count - Performance $facet vs. simple query
The first implementation is by using $facet, and the second is by using a simple query and performing two calls (one for the...
Read more >
Faceted Classification
In most faceted search scenarios, you will want to understand a collection by multiple dimensions at once (price & rating in this case)....
Read more >
How to build faceted search with facet counters using ...
For the counters we can use the built-in aggregations from Elasticsearch. Each of our 2 facets are stored as a single field in...
Read more >
Elasticsearch Part 7: Aggregations (Faceted Search) - YouTube
Oozou Jobs: http://bit.ly/oozou-jobsIn this episode we show you how you can begin implementing aggregates ( faceted search ) in your ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found