The FacetTrail object stores information about the facets in its facetValues property, which holds an array of objects. Each FacetValue object represents a single entry in the facet trail – a facet and its value. To render the facet trail on a page, you will typically need to access the following properties of the FacetValue objects:

The facet selection value. Depending on the facet type, this can be text or numeric, and either a single value or a range. If the facet has multiple selection values, then this property is an array of values or ranges.

The number of items with this facet value or in this range.

The examples in the next section illustrate using these properties in JSPs.

loading table of contents...