Set Range Filter Command

Syntax

The syntax for the set range filter command is:

setRangeFilter(<fieldName>, <minValue>:<maxValue>[:<inclusive>])

The default value for inclusive is true, if unspecified.


Function

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

Example - Using the set range filter command

This set range filter command adds a new range filter for PublicationDate,
and removes the old range filter for PublicationDate,
and it resets paging on the ContentType facet field and page number:

  s.pn=3&s.ff=ContentType,or,2,15&s.rf=PublicationDate,1991:2000&s.cmd=setRangeFilter(PublicationDate,1971:1980)

Try It