November Happy Hour will be moved to Thursday December 5th.

What is the best way to show facets with zero result

Vote:
 

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

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

/Henrik

#74880
Sep 11, 2013 10:38
Vote:
 

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)

 

/Henrik

#74908
Sep 11, 2013 13:05
Vote:
 

Thanks Henrik!

#74912
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.