[nodebb-plugin-solr] Solr search plugin
-
I was thinking about it for long time Solr, Elastic search. Is this forum now using solr ?
-
@julian I want to use this plugin and I have updated lastest NodeBB and Solr, but when I run ./nodebb dev, I got these warns:
warn: [plugins/nodebb-plugin-solr] This plugin may not be compatible with your version of NodeBB. This may cause unintended behaviour or crashing.
warn: [plugins/nodebb-plugin-solr] In the event of an unresponsive NodeBB caused by this plugin, run ./nodebb reset plugin="nodebb-plugin-solr".And when I use this I got some other errors. So what shoud I do to make this work?
-
So we have to install Solr first, correct?
How To Install Solr on Ubuntu 14.04 | DigitalOcean
Solr is a search engine platform based on Apache Lucene. It is written in Java and uses the Lucene library to implement indexing.
(www.digitalocean.com)
...then install the plugin?
Can't wait for the inline-topic searching!
-_-
Installation Problem:
When I try accessing the Solr page via ACP, it gives me a 404 error. Any thoughts? -
This post is deleted!
-
@main It is updated to latest.
-
This is the error I'm getting:
warn: Plugin: /home/c/node_modules/nodebb-plugin-solr is corrupted or invalid. Please check plugin.json for errors.
I disabled all plugins @_@
I noticed theres a version difference in NPM and on Github.
-
@a_5mith I can't build index and when I search got this error:
TypeError: Cannot read property 'response' of null at /var/local/swift/node_modules/nodebb-plugin-solr/library.js:173:11 at ClientRequest.<anonymous> (/var/local/swift/node_modules/nodebb-plugin-solr/node_modules/solr-client/lib/solr.js:576:21) at ClientRequest.EventEmitter.emit (events.js:95:17) at Socket.socketErrorListener (http.js:1547:9) at Socket.EventEmitter.emit (events.js:95:17) at net.js:441:14 at process._tickCallback (node.js:415:13)
-
Okay apparently it WASN'T updated to latest, lol. The following changes were made that fixed it; https://github.com/NodeBB/NodeBB/commit/7212f95582eb1e828ad6845a1b7f7f4dbb8b9e39
Thanks @main
-
Note: Installing and running Solr takes up a good bit of your CPU so if you're using DigitalOcean, I suggest you use the 10$/mo plan instead of the $5/mo.
-
It works fine on our http://nodebb.org.cn