Signature
View live demo
Open the live Hits Searcher example in your browser.
About this widget
The component handling a ,HitsSearcher has the following behavior:
- Distinct state changes (including initial state) will trigger a search operation
- State changes are debounced
- On a new search request, any previous ongoing search calls will be cancelled
HitsSearcher. Searches a single .FacetSearcher. Searches for values.MultiSearcher. Aggregates the hits and facet searchers. This is useful for building a federated search, or query suggestions.
Examples
- Create a
HitsSearcher - Update search state with
queryandapplyState - Listen to search
responsesand build the UI disposeof underlying resources
Dart
HitsSearcher
Your application’s Search-only API key.
Dart
Fields
Instance responsible for handling and sending user related to search interactions,
such as clicks, conversions, and views.
These events help to personalize the user’s search experience by providing insights into user behavior.
eventTracker is automatically integrated with the HitsSearcher to track events when users interact with the search results.Dart
Methods
Gets the latest
SearchResponse value submitted by responses stream:Dart
FacetSearcher
Your application’s Search-only API key.
Dart
Fields
Methods
Gets the latest
FacetSearchResponse value submitted by responses stream:Dart
MultiSearcher
MultiSearcher lets you simultaneously search for hits and facet values in different indices of the same Algolia application.
It instantiates and manages HitsSearcher and FacetSearcher instances.
Once created, these searchers behave like their independently instantiated counterparts.Dart