#community-help

Understanding Facet Results Updating in Typesense

TLDR Emile asked about updating facet results in Typesense. Jason clarified that an additional search is required after filtering.

Powered by Struct AI

1

1

4
14mo
Solved
Join the chat
Aug 18, 2022 (14 months ago)
Emile
Photo of md5-76855fdc14ac437374f44400d5104797
Emile
09:14 AM
Hello,
Very beginners question, as it's the first time I work with facets.

When you click on the facet results to filter, we have to do another search (filter_by the element that got clicked) to get the updated facets results ?
Or am I doing it wrong ?
Aug 19, 2022 (14 months ago)
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:57 AM
That’s right.

1

05:58
Jason
05:58 AM
If you open the network tab in the dev console for this demo: https://ecommerce-store.typesense.org/

And then click on a filter, you’ll see the multiple queries that are generated (within a multi_search request)
Aug 22, 2022 (14 months ago)
Emile
Photo of md5-76855fdc14ac437374f44400d5104797
Emile
03:36 AM
thanks :)

1