Excluding Facet Terms when using TermsFacetFor


I'm wanting to exclude certain terms from being returned when faceting on a property.

The Elastic Search 'Exclude' value doesn't seam to be supported, but I have managed to exclude a single value by using the Script property:

"term == 'XXX' ? false : true"

But if I try to Or the values together I don't get any results back.

Can anyone help?

Jul 03, 2014 15:47

Ah found a solution,

Switch the logic to:

"term != 'xxx' && term != 'yyy' ? true : false"

Jul 03, 2014 16:53
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.