[nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend
-
@sharonyue said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:
@oplik0 could you please let me know if my nodebb version works? or do I need to update it or just keep it as it is
I think oplik0 used NodeBB v2 plugin-quickstart to build this... so, I would assume it should work with NodeBB 2.x
you might have problems with NodeBB 1.X
-
@sharonyue said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:
BTW, what version of nodebb should I use? I am using 1.18.6
Sorry, for late reply, I had to check and didn't have time to do it yesterday - it actually wasn't compatible with NodeBB <2.0.0, but it turns out to have been a simple change (though now the plugin will make NodeBB show a deprecation warning when used in NodeBB v2 - so note that I'll abandon support for 1.x if the deprecated argument is removed).
It should work now sinve v0.5.7, but note that I won't be testing the plugin on 1.x branches. I'm mainly focused on latest NodeBB versions (so I'm normally testing it with v2.5.2 now), so any updates may break the older ones (I'll try to fix what's reported, unless it makes the experience on the latest version worse, in which case the newer one takes precedence). So even more "use at your own risk" than the general warning here
TL;DR - I'd recommend using current NodeBB versions (v2, ideally v2.5.2), but it should work with 1.18.6 now too.
Does it mean I need to install Meilisearch first?
Yes, I don't think there is any supported way to embed Meilisearch and even if there was, it ultimately is separate software from NodeBB just like the database, so I prefer this model. You can find a quickstart guide with installation instructions (including quick setups for dedicated guests on a couple of cloud platforms) in Meilisearch documentation: https://docs.meilisearch.com/learn/getting_started/quick_start.html#setup-and-installation
-
This post is deleted!
-
@oplik0 said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:
Meilisearch for NodeBB
GitHub - oplik0/nodebb-plugin-meilisearch: Full-text searching for NodeBB using Meilisearch
Full-text searching for NodeBB using Meilisearch. Contribute to oplik0/nodebb-plugin-meilisearch development by creating an account on GitHub.
GitHub (github.com)
This plugin allows you to use Meilisearch as search backend instead of the database or Solr (see this topic for why some want to switch)
Installation
Install via plugins page in the ACP or run this command in NodeBB folder:
npm install nodebb-plugin-meilisearch
Configuration
- install this plugin via ACP or by running
npm install nodebb-plugin-meilisearch
- Activate in the plugins page (note: make sure dbsearch plugin is disabled)
- Rebuild and restart NodeBB
- Check that the plugin successfully connected to Meilisearch and adjust the connection settings in
/admin/plugins/meilisearch
if necessary. - Meilisearch should start indexing all posts as soon as it connects for the first time, but if that didn't happen you can start reindexing from the ACP page
- Adjust other search settings as you see fit. Defaults should be good enough for most use cases though.
Notes
- This plugin requires a Meilisearch instance or the same server or somewhere else your NodeBB instance can access
- This plugin conflicts with other search plugins and will not work if
nodebb-plugin-dbsearch
is active - While it should work fine, note that it's still not well tested. User beware
Thank you. This is one of the most needed plugins, just few people understand it yet
- install this plugin via ACP or by running
-
Just an fyi... fwiw...
@sharonyue is Chinese and OP from another thread that prompted discussion of Meilisearch in the first place. Which subsequently inspired @oplik0 to code up this plugin. Maybe reach out to her for any additional insights/experience she may have?
-
@rongcuid Sorry, since I was setting up my dev environment before I got ACP working I didn't entirely think out error messages - I'll correct this but unfortunately I'm can't do it this week so it'll take until early october.
-
@rongcuid said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:
At the same time, it might be nice to mention it in the README.
Good idea, added a warning. Hopefully it won't be needed for long
-
For test
https://sandbox.meilisearch.com/ -
This post is deleted!
-
I fix a bug in this plugin, which will cause empty result in search with filter