-
-
Notifications
You must be signed in to change notification settings - Fork 560
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
facet_by's total_values is returning max_facet_value params value or default value when not present in params #1698
Comments
We introduced a different way to do faceting in v26 which might have caused a regression here. Will investigate and update. |
Typesense supports two strategies for efficient faceting, and has some built-in heuristics to pick the right strategy for you by default. In To fix the issue you are facing, please send this additional search parameter:
This will force Typesense to compute facets in an exhaustive manner and allows the Additional details If you find that faceting is slow for your type of query patterns and shape of your dataset, you can use the The valid values for this parameter are
You can specify a strategy for all facet fields in the query via:
or you can specify a different strategy for each field by using a comma separated list of field names that match the order of field names in |
Description
We're having a homepage where we show the total_count of facet values. We used to get this value in v0.24.1 in
in v.26.0 response is
Is this an intentional change because I have no other way to fetch total count of facet values without searching.
I tried this stack overflow's answer and it ended up in having unacceptable response time.
Typesense Version: v.26
OS: Ubuntu/MacOS
The text was updated successfully, but these errors were encountered: