Add Range Filter Command

Syntax

The syntax for the add range filter command is:

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

The default value for inclusive is true, if unspecified.


Function

The add range filter command adds the range filter, and then it calls clearAllPaging().

Example - Using the add range filter command

This add range filter command adds a new 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.cmd=addRangeFilter(PublicationDate,1971:1980)

Try It