#community-help

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
Join the chat
Dec 22, 2021 (23 months ago)
Ignacio
Photo of md5-f7965ddb4eec1a7d3abd4f89eb705965
Ignacio
05:42 PM
is that a facet? can a facet be optional? :thinking_face:
Jason
Photo of md5-8813087cccc512313602b6d9f9ece19f
Jason
05:44 PM
Yup, 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 PM
Facets can indeed be optional
Ignacio
Photo of md5-f7965ddb4eec1a7d3abd4f89eb705965
Ignacio
05:53 PM
thanks

1