Add Range Facet Field Command

Syntax

The syntax for the add range facet field command is:

addRangeFacetField(<facetField>, <minValue>:<maxValue>[:<inclusive>][, <minValue>:<maxValue>[:<inclusive>]]*)

The default value for inclusive is true, if unspecified.


Function

The add range facet field command adds the range facet field, and then it calls clearAllFacetPaging().

Example - Using the add range facet field command

This add range facet field command adds a new range facet field for several ranges in the PublicationDate field,
and it resets paging on the ContentType facet field:

  s.pn=3&s.ff=ContentType,or,2,15&s.cmd=addRangeFacetField(PublicationDate,1971:1980,1981:1990,1991:2000,2001:2010)

Try It