Excluding Facet Terms when using TermsFacetFor

Vote:
 

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?

#88171
Jul 03, 2014 15:47
Vote:
 

Ah found a solution,

Switch the logic to:

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

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