Set Facet Value Filters Command

Syntax

The syntax for the set facet value filters command is:

setFacetValueFilters(<facetField>, <value>[: <negated>][, <value>[: <negated>]]*)

The default value for negated is false, if unspecified.


Function

The set facet value filters command adds the facet value filters, replacing any existing facet value filters, and then it calls clearAllPaging().

Example - Using the set facet value filters command

This set facet value filters command adds a new facet value filter ContentType Book,
and it removes the existing facet value filter SubjectTerms north america,
and it resets paging on the ContentType facet field and page number:

  s.pn=3&s.ff=ContentType,or,2,15&s.fvf=SubjectTerms,north+america&s.cmd=setFacetValueFilters(ContentType,Book:false)

Try It