Vulnerability in EPiServer.Forms

Try our conversational search powered by Generative AI!

What is the best way to show facets with zero result


We are using facets but when filtering we want to keep displaying all facets even those with zero result, like they do in

What is the best way to do that with a minimum amount of searches?


Sep 11, 2013 10:38

If you want the facet to also display 0 results you just have to specify it to return all terms:

x.TermsFacetFor(x => x.Tags, x => x.AllTerms = true)



Sep 11, 2013 13:05

Thanks Henrik!

Sep 11, 2013 14:30
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.