Wordpress Meilisearch
a plug & play plugin to use meilisearch
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/september-digital-agency/wordpress-meilisearch/archive/refs/heads/main.zipWordpress Meilisearch plugin
Developer-friendly plugin to add Meilisearch and indexing to Wordpress. It's only purpose is to index any posts, custom post types and to update and/or delete these based on actions in the CMS. It also has support for post meta.
Description
Developer-friendly plugin to add Meilisearch and indexing to Wordpress. It's only purpose is to index any posts, custom post types and to update and/or delete these based on actions in the CMS. It also has support for post meta.
Features:
- An easy to use and setup Meilisearch integration
- Index regular posts, pages, attachments or custom posts
- Index any post meta
- A lot of hooks & filters to adjust it to your needs
- Possiblity to manually re-index
The plugin will index any post type selected in the settings after you save or update it.
You can override the settings by definining the following constants:
- MEILISEARCH_HOSTNAME
- MEILISEARCH_PORT
- MEILISEARCH_MASTERKEY
- MEILISEARCH_INDEX
Install meilisearch
- Set up Meilisearch and run it. You can view the install instructions here.
- Install the meilisearch plugin
- Fill in the hostname, port and index name. If you do not have an index yet, you can fill in any name. The Meilisearch plugin will create one for you.
- Click on save and you are good to go!
Development
composer installnpm installandnpm run devto compile the assets ornpm run watchif you want to watch changes
To symlink this repo into a Wordpress project, add the following to your composer.json:
"repositories": [
{
"type": "path",
"url": "~/sites/wordpress-meilisearch", //This is the path to the plugin
"options": {
"symlink": true
}
}
]
"require": {
"septemberdigital/wordpress-meilisearch": "*"
}
and run composer update
Todo before 1.0 release
- [ ] Logo & branding?
- [ ] Add error handling
- [ ] Clean up code
- [ ] Add build process for dist files
- [ ] Add editor config, phpcs, etc
- [ ] Currently, acf is indexed as a json object.. is that sufficient for using it? Or should they become their own fields in Meilisearch?
- [ ] Feature: add option to configure what to index as a json object
- [ ] Add simple example for frontend
- [ ] Check against Wordpress plugin rules
- [ ] Create usefull readme, with samples and introduction on how to run Meilisearch on production
- [ ] Write a tutorial/blog posts
- [ ] Work on a announcement strategy
- [ ] Is this really open source, and how will we work on github
- [ ] Publish on Wordpress directory