Collapses the facet, displaying only its currently selected values.
Return the debug info about this component.
Deselects multiple values in this facet.
Does not trigger a query automatically. Does not update the visual of the facet until a query is performed.
The names of the facet values to deselect.
Deselects a single value in this facet.
Does not trigger a query automatically. Does not update the visual of the facet until a query is performed.
Disable the component. Normally this means that the component will not execute handlers for the framework events (query events, for example). Components are enabled by default on creation.
Enable the component. Normally this means that the component will execute handlers for the framework events (query events, for example). Components are enabled by default on creation.
Sets a flag indicating whether the facet values should be returned in their current order.
Setting the flag to true
helps ensuring that the values do not move around while the end-user is interacting with them.
The flag is automatically set back to false
after a query is built.
For this method to work, the component has to be the child of a DynamicFacetManager component.
Sets a flag indicating whether the facets should be returned in their current order.
Setting the flag to true
helps ensuring that the facets do not move around while the end-user is interacting with them.
The flag is automatically set back to false
after a query is built.
Expands the facet, displaying all of its currently fetched values.
Keyboard focuses a value once it has been re-rendered.
The name of the facet value to focus
Return the bindings, or environment, for the current component.
Returns the configured caption for a desired facet value.
The string facet value whose caption the method should return.
Determines whether the specified value is selected in the facet.
The name of the facet value to verify.
Deselects all values in this facet.
Does not trigger a query automatically. Updates the visual of the facet.
Selects multiple values in this facet.
Does not trigger a query automatically. Does not update the visual of the facet until a query is performed.
The names of the facet values to select.
Selects a single value in this facet.
Does not trigger a query automatically. Does not update the visual of the facet until a query is performed.
The name of the facet value to select.
Reduces the number of displayed facet values down to numberOfValues.
Automatically triggers an isolated query.
Requests additional values.
Automatically triggers an isolated query.
The number of additional values to request. Minimum value is 1. Defaults to the numberOfValues option value.
Collapses or expands the facet depending on it's current state.
Toggles the selection state of a single value in this facet.
Does not trigger a query automatically.
Get the bound component to the given HTMLElement. Throws an assert if the HTMLElement has no component bound, unless using the noThrow argument.
If there is multiple component bound to the current HTMLElement, you must specify the component class.
HTMLElement for which to get the bound component.
Optional component class. If the HTMLElement has multiple components bound, you must specify which one you are targeting.
Boolean option to tell the method to not throw on error.
Allows the component to bind events and execute them only when it is enabled.
Contains the state of options for different components. Mainly used by ResultLink.
Contains the state of different components (enabled vs disabled). Allows to get/set values. Triggers component state event when modified. Each component can listen to those events.
A disabled component will not participate in the query, or listen to ComponentEvents.
Allows component to log in the dev console.
Contains the singleton that allows to trigger queries.
Contains the state of the query. Allows to get/set values. Trigger query state event when modified. Each component can listen to those events.
A reference to the root HTMLElement (the SearchInterface).
A reference to the root of every component, the SearchInterface.
The static ID that each component needs in order to be identified.
For example, SearchButton -> static ID: SearchButton -> className: CoveoSearchButton
A reference to the Analytics.client.
Whether this facet should be collapsed by default.
data-collapsed-by-default='true' data-collapsed-by-default='false'
Specifies a custom order by which to sort the dynamic facet values.
Custom-ordered values won't necessarily retrieve values from the index.
Example:
You could use this option to specify a logical order for support tickets, such as:
<div class="CoveoDynamicFacet" data-field="@ticketstatus" data-title="Ticket Status" data-tab="All" data-custom-sort="New,Opened,Feedback,Resolved"></div>
Note:
The
DynamicFacetRange
component does not support this option.
The id
of another facet in which at least one value must be selected in order for the dependent facet to be visible.
By default, the facet does not depend on any other facet to be displayed.
data-depends-on='document-type-facet'
A function that verifies whether the current state of the dependsOn
facet allows the dependent facet to be displayed.
If specified, the function receives a reference to the resolved dependsOn
facet component instance as an argument, and must return a boolean.
The function's argument should typically be treated as read-only.
By default, the dependent facet is displayed whenever one or more values are selected in its dependsOn
facet.
Whether to allow the end-user to expand and collapse this facet.
data-enable-collapse='true' data-enable-collapse='false'
Whether to allow the end-user to search the facet values.
Note: The DynamicFacetRange
component does not support this option.
By default, the following behavior applies:
data-enable-facet-search='true' data-enable-facet-search='false'
Whether to enable the Show more and Show less buttons in the facet.
Note: The DynamicFacetRange
component does not support this option.
data-enable-more-less='true' data-enable-more-less='false'
Whether to scroll back to the top of the page whenever the end-user interacts with the facet.
data-enable-scroll-to-top='true' data-enable-scroll-to-top='false'
The name of the field on which to base this facet.
The field must of the string
type.
Must be prefixed by @
, and must reference an existing field whose
Facet option is enabled.
data-field='@author'
Whether to exclude folded result parents when estimating result counts for facet values.
Note: The target folding field must be a facet field with the Use cache for nested queries options enabled (see Add or Edit a Field).
See also the Folding
and FoldingForThread
components.
Default: true
.
data-filter-facet-count='true' data-filter-facet-count='false'
The heading level to use for the heading above the facet.
A value of 0 will render a div
element instead.
Default: 2
.
data-heading-level='10'
The unique identifier for this facet.
Among other things, this is used to record and read the facet
state in the URL fragment identifier (see the
enableHistory
SearchInterface
option).
Tip: When several facets in a given search interface are based on
the same field, ensure that each of those facets has a distinct id
.
If specified, must contain between 1 and 60 characters. Only alphanumeric (A-Za-z0-9), underscore (_), and hyphen (-) characters are kept; other characters are automatically removed.
Defaults to the field
option value.
data-id='author-facet'
Whether to notify the Breadcrumb
component when toggling values in the facet.
See also the numberOfValuesInBreadcrumb
option.
data-include-in-breadcrumb='true' data-include-in-breadcrumb='false'
The number of items to scan for facet values.
Setting this option to a higher value may enhance the accuracy of facet value counts at the cost of slower query performance.
data-injection-depth='1500'
The number of values to request for this facet.
Also determines the default maximum number of additional values to request each time this facet is expanded,
and the maximum number of values to display when this facet is collapsed (see the enableCollapse
option).
data-number-of-values='10'
The maximum number of selected values the Breadcrumb
component can display before outputting a N more... link for the facet.
data-number-of-values-in-breadcrumb='10'
The sort criterion to use for this facet.
See FacetSortCriteria
for the list and
description of allowed values.
By default, the following behavior applies:
numberOfValues
is greater than or equal to the currently displayed number of values,
the alphanumeric
criterion is
used.numberOfValues
is less than the currently displayed
number of values and the facet is not currently expanded, the score
criterion is used.alphanumeric
criterion is used.data-sort-criteria='score'
The title to display for this facet.
Defaults to the localized string for NoTitle
.
data-title='Author'
Whether to prepend facet search queries with a wildcard.
Note: The DynamicFacetRange
component does not support this option.
data-use-leading-wildcard-in-facet-search='true' data-use-leading-wildcard-in-facet-search='false'
A mapping of facet values to their desired captions.
Note: The DynamicFacetRange
component does not support this option.
data-value-caption='{ "smith_alice": "Alice Smith", "jones_bob_r": "Bob R. Jones" }'
Creates a new DynamicFacet
instance.
The element from which to instantiate the component.
The component options.
The component bindings. Automatically resolved by default.
The
DynamicFacet
component displays a facet of the results for the current query. 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).The list of values is obtained using an array of
FacetRequest
operations performed at the same time as the main query.The
DynamicFacet
component allows the end-user to drill down inside a result set by restricting the result to certain field values.This facet is more easy to use than the original
Facet
component. It implements additional Coveo Machine Learning (Coveo ML) features such as dynamic navigation experience (DNE).Coveo for Salesforce Free
May 2019 Release (v2.6063)