Understanding Optional Facets in Database
TLDR Ignacio inquired about facets and their optionality. Jason explained how facets can be set as optional and used in search parameters.
Powered by Struct AI
1
4
23mo
Solved
Dec 22, 2021 (23 months ago)
Ignacio
Ignacio
05:42 PMis that a facet? can a facet be optional? :thinking_face:
Jason
Jason
05:44 PMYup, if you set that field as a facet and then add facet_by=company, q=*, max_facet_values=9999 as search parameters, you'd get a list of all companies along with counts
05:44
Jason
05:44 PMFacets can indeed be optional
Ignacio
Ignacio
05:53 PMthanks
1
Typesense
Lightning-fast, open source search engine for everyone | Knowledge Base powered by Struct.AI
Indexed 2786 threads (79% resolved)
Similar Threads
Understanding Faceting in Search Parameters
Vera asked for clarity on faceting, and Jason provided an explanation, using a specific example to illustrate its function.
5
25mo
Solved
Understanding Filtering, Faceting and Their Differences
Gabe inquired about using a boolean field for filtering, sparking a detailed discussion about the distinctions between filtering and faceting with Jason providing a comprehensive explanation.
11
29mo
Solved
Setting dynamic range faceting in Typesense
Jacob requested dynamic range faceting in Typesense, and explanation for fetching max/min values. Kishore Nallan clarified pricing bucket sizes were user dependent and explained the stats return as part of facet results.
8
1mo
Solved