Algolia Search Query
You can set up an Algolia Search Backend Query to automatically trigger a search as soon as the user navigates to the page. This allows users to find documents within a Firestore Collection by simply providing a search term.
This approach is particularly useful for enhancing the user experience, such as dynamically refreshing search results in a ListView as the user types in a TextField, like real-time updates.
To add an Algolia Search Query, begin by selecting the scrollable widget that will fetch the results, such as a ListView. In the Properties Panel, navigate to the Backend Query tab, click on Add Query, and set the Query Type to Algolia Search.
Next, configure the search parameters: for Firebase Collection, select the Firestore collection you intend to search; for Search Term, choose From Variable and select the TextField’s value (e.g., Widget State > [Your TextField]); and specify the optional Max Results to determine the number of search results.
Last updated on