#community-help

Inconsistent Facet Counts in Typesense Song Dataset

TLDR Ailish queried the discrepancy in facet counts on Typesense's song dataset, Jason explained it was due to non-exhaustive default search, suggesting the addition of exhaustive_search=true for precise counts.

Powered by Struct AI
3
19mo
Solved
Join the chat
Apr 04, 2022 (19 months ago)
Ailish
Photo of md5-7fcbf02da67845f42ef837fd8a989396
Ailish
06:56 PM
Hey - sorry if this has been asked before but why is it that in the dataset of songs example, the facet for 1960s displays a count of 20, but when I actually select the facet, there are 24 results returned?
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
08:30 PM
Ailish By default Typesense does not do an exhaustive search for performance reasons. If you need precise counts, you want to add exhaustive_search=true as a search query param
Apr 05, 2022 (19 months ago)
Ailish
Photo of md5-7fcbf02da67845f42ef837fd8a989396
Ailish
07:25 AM
Thank you!!