Algolia is a flexible search and discovery API designed to enhance the search functionality of websites and applications.
With the Algolia plugin, you are able to connect your content from Storyblok with Algolia, ensuring that the latest updates, additions, and modifications within Storyblok are always reflected in Algolia’s search index.
How to set up
In your Algolia account, copy your Application ID and your Write API Key.
Next, in Storyblok, install the Algolia application and navigate to Apps > Algolia. Once the request to access your space has been approved, enter the Application ID and Write API Key of your Algolia application. Click Save Settings.
Now, a new index connection can be created by clicking New Connection. The Index Name can match the name of a previously created blank index in Algolia. If it does not match, a new index will be created. Storyblok stories to sync by slug allows you to choose either the root level of this space’s content or select any specific folders. Once Save Connection has been clicked, Algolia will immediately index the affected stories.
Please take into account that any level that is selected will result in all nested folders and stories being indexed, too. If you require strictly separated indices, organizing your Storyblok content in top-level folders is required.
Once an index connection has been established, any of the following content operations will trigger the synchronization with Algolia:
- Publishing a story or folder
- Unpublishing a story or folder
- Moving a story or folder
- Deleting a story or folder
To ensure proper functionality, please disable any ad or script blockers in your web browser while using the Algolia integration in Storyblok.