atomic-numeric-facet

A facet is a list of values for a certain field occurring in the results, ordered using a configurable criteria (e.g., number of occurrences). An atomic-numeric-facet displays a facet of the results for the current query as numeric ranges.

Properties

Property Attribute Description Type Default

displayValuesAs

display-values-as

Whether to display the facet values as checkboxes (multiple selection) or links (single selection). Possible values are 'checkbox' and 'link'.

"checkbox" | "link"

'checkbox'

facetId

facet-id

Specifies a unique identifier for the facet.

string | undefined

field (required)

field

The field whose values you want to display in the facet.

string

filterFacetCount

filter-facet-count

Whether to exclude the parents of folded results when estimating the result count for each facet value.

boolean

true

injectionDepth

injection-depth

The maximum number of results to scan in the index to ensure that the facet lists all potential facet values. Note: A high injectionDepth may negatively impact the facet request performance. Minimum: 0

number

1000

isCollapsed

is-collapsed

Specifies if the facet is collapsed.

boolean

false

label

label

The non-localized label for the facet.

string

'no-label'

numberOfValues

number-of-values

The number of values to request for this facet, when there are no manual ranges. If the number of values is 0, no ranges will be displayed.

number

8

rangeAlgorithm

range-algorithm

The algorithm that’s used for generating the ranges of this facet when they aren’t manually defined. The default value of "equiprobable" generates facet ranges which vary in size but have a more balanced number of results within each range. The value of "even" generates equally sized facet ranges across all of the results.

"equiprobable" | "even"

'equiprobable'

sortCriteria

sort-criteria

The sort criterion to apply to the returned facet values. Possible values are 'ascending' and 'descending'.

"ascending" | "descending"

'ascending'

withInput

with-input

Whether this facet should contain an input allowing users to set custom ranges. Depending on the field, the input can allow either decimal or integer values.

"decimal" | "integer" | undefined

Shadow Parts

Part Description

clear-button

The button that resets the actively selected facet values.

clear-button-icon

The clear button icon.

facet

The wrapper for the entire facet.

input-apply-button

The apply button for the custom range.

input-end

The input for the ending value of the custom numeric range.

input-start

The input for the starting value of the custom numeric range.

label-button

The button that displays the label and allows to expand/collapse the facet.

label-button-icon

The label button icon.

placeholder

The placeholder shown before the first search is executed.

ripple

The ripple effect of the component’s interactive elements.

value-checkbox

The facet value checkbox, available when display is 'checkbox'.

value-checkbox-label

The facet value checkbox clickable label, available when display is 'checkbox'.

value-count

The facet value count, common for all displays.

value-label

The facet value label, common for all displays.

value-link

The facet value when display is 'link'.

values

The facet values container.

CSS Custom Content

Name Description

--atomic-facet-checkbox-size

Size of the checkbox.

Recommended Articles