Remove Facet Value Filter Command

Syntax

The syntax for the remove facet value filter command is:

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

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


Function

The remove facet value filter command removes 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 removed. After removing facet value filters, this command calls clearAllPaging().

Example - Using the remove facet value filter command

This remove facet value filter command removes all ContentType facet value filters,
and removes 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=removeFacetValueFilter(ContentType)+removeFacetValueFilter(SubjectTerms,north+america)

Try It