Skip to content

How to add stats for FACET results? #207

Open
@fedex1

Description

@fedex1

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
**:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions