#community-help

Getting Facet Stats in Typesense Angular Application

TLDR Hariharan asked about obtaining facet stats in Typesense Angular app. Jason suggested specifying the field in facet_by query param for facet counts.

Powered by Struct AI
2
9mo
Solved
Join the chat
Feb 27, 2023 (9 months ago)
Hariharan
Photo of md5-18c41204e6fd9bb8436d758a90a0e5ef
Hariharan
02:34 PM
Hi! In typesense angular application, how to get the facet stats? Also how to register helper on event in angular application?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
06:08 PM
I’m not familiar with angular, but from a Typesense perspective, if you specify the the field in facet_by query param, you’ll get facet counts in the API response