Index on Algolia

描述

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;
}
?>

安装

  1. Upload plugin folder to the “/wp-content/plugins/” directory.
  2. Activate the plugin through the “Plugins” menu in WordPress.
  3. Update url in plugin settings page

评价

此插件暂无评价。

贡献者及开发者

「Index on Algolia」是开源软件。 以下人员对此插件做出了贡献。

贡献者

帮助将「Index on Algolia」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志

更新日志

1.0

  • Initial release.

1.1

  • Handle backup & push settings for replica

1.2

  • Allow to create indice for multiple post types

1.2.1

  • Fix autodraft post being index on Algolia

1.2.2

  • Fix autodraft post being index on Algolia

1.2.3

  • Fix autodraft post being index on Algolia using global index

1.2.4

  • Fix replica not being push on some environment

1.3.0

Add filter on records before push on Algolia

1.3.1

Fix post indexing on global index even if disable

1.3.2

Fix indexation replica on push settings

1.3.3

Fix post indexation on wrong status