How can we list all facets in an attribute even if...
# community-help
s
How can we list all facets in an attribute even if there is no search result? All I want if a facet has no search list, then count will be zero?
k
Do
q: *
s
Hi @Kishore Nallan I already have below.
Copy code
$searchParameters = [
            'q'         => '*',
            'query_by'  => 'title',
            'facet_by'  => 'brand',
            'max_facet_values' => '500',
            'sort_by'   => 'updated_at:desc'
          ];
What I want if I have brand facet like Apple, Mangi, Zara. And suppose i have not product listing which has Zara brand. i still want to show Zara in my brand facet as refinementList but Zara with count 0 . Is it possible.