Examples of range filter parameters

This topic shows some valid and invalid examples of using the Nf parameter in queries.

Consider the following examples that use these four records:

Record Wine Type dimension value Price property Description property
1 Red (Dim Value 101) 10 Dark ruby in color, with extremely ripe…
2 Red (Dim Value 101) 12 Dense, rich and complex describes this '96 California…
3 White (Dim Value 102) 19 Dense and vegetal, with celery, pear, and spice flavors…
4 Other (Dim Value 103) 20 Big, ripe and generous, layered with honey…

Example 1

Assume that the following query is created:
N=0&Nf=Price|GT+15
This navigation request has a range filter specifying the Price property should be greater than 15 (with no dimension values specified). The following Navigation object is returned:
2 records (records 3 and 4)
2 refinement dimension values (White and Other)

Example 2

This example uses the following query:
N=101&Nf=Price|LT+11
This navigation request specifies the Red dimension value (dimension value 101) and a range filter specifying a price less than 11. The following Navigation object is returned:
1 record (record 1)
(No additional refinements)

Example 3

This query:
N=0&Nf=Price|BTWN+9+13
would return records 1 and 2 from the sample record set. Notice that the smaller value, 9, is listed before the larger value, 13.

Invalid examples

The following query is invalid because it is missing the Navigation parameter (N):
Nf=Price|LT+9
This following query is incorrect because of an invalid dimension (the Food dimension is misspelled as Foo):
N=0&Nf=Foo|LT+11
The following query, which has an incorrect number of values for the GT function, is also incorrect:
N=0&Nf=Price|GT+20+30