If I want to use a boolean field for filtering do ...
# community-help
g
If I want to use a boolean field for filtering do I need to mark it as a facet?
j
If it's only for filtering (and not to fetch counts), you shouldn't need to set it as a facet
g
cool, thanks!
s
@Jason Bosco so is facet only to be set while using filter ?
g
I've always been rather confused by the distinction. This does a decent job of explaining it
basically if you want to group by a field & get # of results per group of this field then you want to use facets (is how I understand it)
I think these require facets
1
j
so is facet only to be set while using filter ?
No, you can filter without setting a field as a facet, at least in Typesense. In Algolia, IIRC they require all fields you filter by to also be set as facets. And you can also facet without using filters.
Gabe's screenshot with the annotation around counts for each value displayed in the filter widget is exactly what faceting will give you - counts of unique values for different fields in the result set
Think of faceting as just a way to count all unique values of the faceted fields, in the result set.
g
I think I finally get it 😅
🙌 1