Connect your app to Algolia
Connect your Lovable app to Algolia to enable fast, typo-tolerant search and category filters. Lovable uses a backend key to sync your data and a public key to let users search directly from the page.
Anyone who needs instant search, category filters, or typo tolerance across catalogs, directories, or large content lists.
Do this, in order
- 1
Sign in to your Algolia dashboard, go to Settings, and select API Keys to copy your Application ID.
Lovable needs your unique Algolia account identifier to link your project.
- 2
Create a new backend API key in Algolia with permissions for addObject, editSettings, deleteIndex, and optionally deleteObject.
This private key allows your app's backend to sync and index records safely without exposing your main admin key.
- 3
Create a second API key in Algolia restricted strictly to the 'search' permission only.
This key is exposed in your frontend app so visitors can run searches, and Lovable rejects keys with broader permissions for security.
- 4
In Lovable, navigate to Connectors, choose Algolia, and click Connect.
This opens the configuration form to store your integration settings.
- 5
Enter a display name, paste your Application ID, paste your secret backend API key, and paste your public search key.
Both keys are required if you want your app to both index data and let users search it.
- 6
Set your sharing preferences (private to you or shared with workspace members) and click Connect.
Lovable verifies your credentials with Algolia and makes the connection available to link to your projects.
- 7
Open your Lovable project chat and prompt Lovable to use the Algolia connection to build your search interface.
Lovable will wire up the indexing logic and front-end search bars using your linked connection.
Paste this into your project
Use Algolia to build a searchable catalog. Connect to my Algolia integration to index my items and add an instant search bar with typo tolerance and category filters.
Words decoded
- Faceted filtering
- Filtering search results by specific categories or attributes, such as price ranges, sizes, brands, or tags.
- Typo tolerance
- A search feature that still finds the right result even if the user misspells a word.
- ACL (Access Control List)
- Specific permissions assigned to an API key specifying what actions it is allowed to perform (like searching, adding records, or deleting).
- Index
- A structured list of searchable records stored in Algolia, similar to an index in the back of a book.
Where people get stuck
- Do not use your Algolia Admin API key; always generate dedicated keys with minimal required permissions.
- Do not omit the public search key; without it, your app can index data behind the scenes but users cannot actually search from the interface.
- Ensure the public API key has only the 'search' permission; Lovable will automatically reject it if it includes indexing or admin permissions.
- Remember that deleting a connection or project in Lovable does not delete your data or indexes inside Algolia; you must delete indexes manually in Algolia.
- All searches and index updates count toward your Algolia account quotas and billing limits, not Lovable's.
The short version, steps, decoder and prompt on this page are written automatically from Lovable's own documentation and can lag or misread it. The official page is always the authority.