Resets the query and empties the suggestions.
Requests field suggestions based on a query.
Filters the search using the specified value.
If a facet exists with the configured facetId
, selects the corresponding facet value.
The field suggestion for which to select the matching facet value.
Shows more field suggestions for the current query.
Filters the search using the specified value, deselecting others.
If a facet exists with the configured facetId
, selects the corresponding facet value while deselecting other facet values.
The field suggestion for which to select the matching facet value.
Adds a callback that's invoked on state change.
A callback that's invoked on state change.
A function to remove the listener.
Updates the captions of field suggestions.
A dictionary that maps field values to field suggestion display names.
Requests field suggestions based on a query.
The query to search.
The
FieldSuggestions
controller provides query suggestions based on a particular facet field.For example, you could use this controller to provide auto-completion suggestions while the end user is typing an item title.
This controller is a wrapper around the basic facet controller search functionality, and thus exposes similar options and properties.
Example: field-suggestions.fn.tsx