This documentation will help you create your own integration in the best way possible.
To integrate Algolia to your WordPress instance, there are 3 main steps:
- Indexing your data
- Optimizing your relevance
- Building your front end search experience
For the indexing part, there are two ways to do it. Either you create a custom plugin, or you add this feature to your active theme.
Ideally, you want to create a plugin to hold all the generic code, so you can easily reuse this code for another blog or when we decide to use another theme. Unfortunately, since many features are built in the theme (such as custom post types or post meta) it’s hard to really keep things separated.
The best solution will be to create a plugin to do some plumbing work but to add in the theme all the content-related logic.
This documentation assumes that you have some basic WordPress development knowledge. Typically, you know what a custom post type is, what post meta are, and how to use actions and filters. You must have basic PHP skills and be able to run a command from your terminal.
The following software must be installed: