Facet Descriptors - AFS

AFS Integration Guide

Product
AFS
AFS_Version
7.7
Category
Reference Guide

Attribute

Type

Required

Default

Description

id

String

Required

N/A

The facet ID

label

String

Optional

""

The facet label

style

String

Optional

""

Inline CSS to apply to the facet

clusterizable

Boolean

Optional

true

This facet can be clustered when true

or

Boolean

Optional

false

Denotes an OrFacet when true

displayResultsCount

Boolean

Optional

true

Enable or disable the display of results count for each facet entry.

monoValued

Boolean

Optional

false

Indicate if multiple values of a facet can be chosen.

sticky

Boolean

Optional

false

Indicate if the facet is sticky.

defaultValues

String array

Optional

[ ]

Defines default values to set for the corresponding facet.

Defining a default value require to know the uri of the wanted facet value, and to know the type and layout of the facet to properly set the default value.

For example, for a String facet, values have to be given surrounded by double quotes like so:

{"id": "myFacet", "defaultValues": ["\"urn:foo:myValue\""]}

feed

String

Optional

""

The ID of the feed where the facet can be found.

Setting or attribute to true only makes sense for a multi-valued facet. When a facet is multi-valued, a result can potentially be associated with more than one value of this facet. The Or facet is useful if you want to offer the ability to search for results having (one or) several values of this facet at the same time.

All above options only apply on facets within an agent, not on feeds.

The Widgets 7.6 behavior where results count were displayed between parentheses can be restored using the following CSS snippet.

.AFSS-facet-item-count:before {
content: '(';
}

.AFSS-facet-item-count:after {
content: ')';
}