Remove Facet Value Group Filter Command

Syntax

The syntax for the remove facet value group filter command is:

removeFacetValueGroupFilter(<id>[, <value>])

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


Function

The remove facet value group filter command removes the value specified if a value is present. If no value is present and only an id is given then the entire facet value group filter will be removed. After removing specified value or group filter, this command calls clearAllPaging().

Example - Using the remove facet value group filter command

This remove facet value group filter command removes entire facet value group filter 1,
and removes the north america value from facet value grou pfilter 2,
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.fvgf:1=ContentType,or,Book,Journal
  &s.fvgf:2=SubjectTerms,or,north+america,u.s
  &s.cmd=removeFacetValueGroupFilter(1)+removeFacetValueGroupFilter(2,north+america)

Try It