[nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend
-
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
-
@sharonyue I don't think I fully fixed the setup being a bit finnicky due to lack of feedback on tasks (essentially, especially if you have a lot of posts, things can take a few minutes to finish processing mostly on Meilisearch side, while you're left with nonfunctional search and setting page that doesn't seem to reflect on anything since all the changes will just be queued after the currently running tasks*), but once everything is set up, I haven't had any issues running it.
There are now some basic automated tests, so at the very least I won't accidentally break a simple setup, but obviously they could be much better
* in my defense, when the plugin was being written, Meilisearch task management was very lacking, and 0.30 that addressed that issue was actually released not long after initial plugin versions
-
@oplik0 Thank you very much for your reply. I have plan to use this one since solr is a very bad engine for non-English language. If it will not bring any side effects on my forum I would like to install it on my site and test it and give you feedback.
I literally know nothing about nodejs and others.. I only know how to install nodebb and run a website.
I will try to install it. Right now I did not see any searching plugin which is good for non-English language. The plugin you wrote is the only one.
-
@sharonyue If you don't have specific needs that dbsearch just doesn't handle well at all (e.g. some languages) you can try doing one of these simple things that dbsearch doesn't support:
- prefix match - pick a (preferably less common to have it come up near the top) word from a post. Remove its last letter (or a few last letters) and search for it. dbsearch doesn't support
- typo tolerance - do the same, but instead of removing a letter swap two letters. Works only with words above 4 characters if I remember correctly.
- add a synonym for that word in ACP (can be just gibberish). Search for the synonym
-
I think meilisearch is working right now. I can see the results are better. From my experience, I need to take a note in case I need to install it in the future again:
-
I need to run meilisearch by
./meilisearch > log &
manully, I dont need to do anything. I cannot let it run by 'systemctl start meilisearch'. Nothing more needs to be done. -
I need to install dbsearch firstly then deactived it. Otherwise nodebb-meilisearch does not open the page in ACP (we cannot see that search button on the right bar)
Then everything works well. I did not see anyproblem from users' end. It looks great.
The results are MUCH MUCH MUCH BETTER than solr. I highly suggest the other website who is using non-English to use nodebb-meilisearch.
Thank you @oplik0 . If you receive personal danote by paypal. I would like to donate 150 dollars
-
-
@sharonyue said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:
- I need to run meilisearch by
./meilisearch > log &
manully, I dont need to do anything. I cannot let it run by 'systemctl start meilisearch'. Nothing more needs to be done.
If you want to run it as a systemd service, there is a guide in Meilisearch documentation: https://www.meilisearch.com/docs/learn/cookbooks/running_production
You skip step 5, since it's about securely exposing Meilisearch to the outside - which you don't need to do if you're running on the same machine as NodeBB (since then NodeBB is just talking to it locally, and Meili isn't exposed to the internet at all)- I need to install dbsearch firstly then deactived it. Otherwise nodebb-meilisearch does not open the page in ACP (we cannot see that search button on the right bar)
That's weird, I guess I actually never tested it with dbsearch fully uninstalled, since it's there by default (and the way NodeBB tests are set up, I can't even easily add CI for this case. Even disabling dbsearch there is a bit hacky). I'll look into fixing it when I have time, but I'm not actually sure if it's the fault of the plugin (I don't think it refers to dbsearch in any way that could cause this, so this might be a NodeBB issue)
- I need to run meilisearch by
-
its okay if I run it by
./meilisearch
. I was just not sure if its a common pratise.The second one is not a general problem. I am special since I use solr and dbsearch was uninstalled many many years ago. Several days ago I installed nodebb 3, and move my data to it so it doesnt come with a dbsearch in default. So I think I am a special one.
There is another thing is that I am not sure if nodebb-meilisearch will reindex it automatically. I will keep you updated
-
@sharonyue said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:
There is another thing is that I am not sure if nodebb-meilisearch will reindex it automatically. I will keep you updated
If you see some older posts that haven't been indexed try reindexing from ACP, but otherwise new posts should be automatically indexed as they're created. I haven't seen any indexing problems myself yet.
-
@sharonyue said in [nodebb-plugin-meilisearch] use MeiliSearch as a full-text search backend:
I confirmed it was done automatically. Right now nodebb-meilisearch looks 100% perfect on my site! Excellent!
Can somebody explain me if this currently is "the best search engine" and recommened to use or is there still a big disclaimer? And if so, what is needed?