Negate Facet Value Filter Command

Syntax

The syntax for the negate facet value filter command is:

negateFacetValueFilter(<facetField>[, <value>])

The default value for value is all values, if unspecified.


Function

The negate facet value filter command negates the facet value filter specified if a value is present. If no value is present and only a facet field is given then all facet value filters for that facet field will be negated. After negating facet value filters, this command calls clearAllPaging().

Example - Using the add facet value filter command

This negate facet value filter command negates all ContentType facet value filters,
and negates the north america SubjectTerms facet value filter,
and it resets paging on the facet fields and page number:

  s.pn=3&s.ff=ContentType,or,2,15&s.ff=SubjectTerms,and,2,15&s.fvf=ContentType,Book
  &s.fvf=ContentType,Journal+Article&s.fvf=SubjectTerms,north+america&s.fvf=SubjectTerms,u.s
  &s.cmd=negateFacetValueFilter(ContentType)+negateFacetValueFilter(SubjectTerms,north+america)

Try It