Allow to index posts into Algolia indices
| Author: | theurtin (profile at wordpress.org) |
| WordPress version required: | 5.0 |
| WordPress version tested: | 6.8.3 |
| Plugin version: | 1.3.3 |
| Added to WordPress repository: | 17-04-2023 |
| Last updated: | 05-01-2026 |
| Rating, %: | 0 |
| Rated by: | 0 |
| Plugin URI: | |
| Total downloads: | 1 954 |
| Active installs: | 20+ |
![]() Click to start download |
|
Allow to index posts into Algolia indices
You will access two pages :
– Settings : need to fill all informations needed for Algolia to work (Application ID, Search API Key, …)
– Indices : you can choose post types you want to index
For each indice, you can :
– Index whole posts existing (useful when enable new post type or to fix some previous missing posts)
– Backup settings in JSON file in order to sync between multiple environments
– Push settings from JSON into Algolia
These action can be done from administration or with WP CLI (see wp index-algolia command)
All post created, updated or deleted will be automatically synchronized with Algolia.
By default, plugin while index data existing in WP_Post entity.
In order to control which data you would index, you can use index_algolia_post_to_record filter which give you post object and waiting an array in return.
If you use filter, your return array SHOULD at least have objectID value.
Exemple :
$post->ID,
‘post_title’ => $post->post_title,
‘post_date’ => get_post_time( ‘U’, false, $post ),
‘link’ => get_the_permalink($post),
];
return $record;
}
?>
ChangeLog
