Add Facet Value Filters Command

Syntax

The syntax for the add facet value filters command is:

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

The default value for negated is false, if unspecified.


Function

The add facet value filters command adds the facet value filters, and then it calls clearAllPaging().

Example - Using the add facet value filters command

This add facet value filters command adds a new facet value filter ContentType Book,
and it resets paging on the ContentType facet field and page number:

  s.pn=3&s.ff=ContentType,or,2,15&s.cmd=addFacetValueFilters(ContentType,Book:false)

Try It