Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add stats for FACET results? #207

Open
fedex1 opened this issue Jun 8, 2024 · 0 comments
Open

How to add stats for FACET results? #207

fedex1 opened this issue Jun 8, 2024 · 0 comments

Comments

@fedex1
Copy link

fedex1 commented Jun 8, 2024

Description

We'd like to show the sum and average etc. for the facet results. We do not see a way to do this.

Steps to reproduce

See https://typesense.org/docs/26.0/api/search.html#facet-results

It says

 For integer fields, Typesense will also return min, max, sum and average values, in addition to counts.

And it does return them but what is the correct way to display them?

Expected Behavior

An easy widget should exist or template example to show the maximum of the faceted column.

Actual Behavior

There seems to be no example of how to do this.

Metadata

{"state":1,"version":"0.25.2"}:

**
Distributor ID: Ubuntu
Description: Ubuntu 22.04.3 LTS
Release: 22.04
Codename: jammy
**:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant