@baris Thank you!
@jiangcaiyang Yes, I have a few things in mind. That looks cool. I wish I could read it.
Solr (pronounced "solar") is an open source enterprise search platform from the Apache Lucene project. Its major features include full-text search, hit highlighting, faceted search, dynamic clustering, database integration, and rich document (e.g., Word, PDF) handling.
This plugin extends NodeBB to utilise an installation of Apache Solr as a search backend.
npm install nodebb-plugin-solr
npm install nodebb-plugin-solr
schema.xml
) instead of using the assumed title_t
and description_t
Just tried searching some Chinese words in this forum, it does work! Wow!
Thanks @Bin! One of the aims from this plugin is to allow non-latin language forums to have search, since dbsearch is phonetics based. Glad to hear it's working
@julian Wow, we will try it very soon. Thanks a lot.
Btw does this plugin work with 0.4.3(the latest release)?
@Bin, this plugin works with the latest commits of NodeBB, so it is not compatible with v0.4.3. If you're on the master branch, a git pull
is sufficient to bring you up to date.
Edit: This commit: https://github.com/NodeBB/NodeBB/commit/b2ece27263fffbd603f219a7c3258a06dc329a89#diff-ed75d775004d7f6bf533c07c815c33ab
So if you've pulled within the past 7 days, you're good
Have updated Chinese translation. http://nodebb.org.cn/topic/5/nodebb-plugin-solr-solr-search-插件
Will be keeping an eye on this, was a pain setting up db search once I'd imported my forum, so will have to see how this one copes with the initial indexing.
For reference, it indexed this forum (about 12k posts) in about 4 seconds.
I was thinking about it for long time Solr, Elastic search. Is this forum now using solr ?
Yes, @kinderjaje, when v0.1.0 was released (yesterday afternoon), I implemented it onto this forum, you can test it right now.
@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?
Pylon can safely ignore warns about plugin incompatibility, this usually means that at some point in the future, a hook will be removed in favour for another one.
What are the errors you see when trying to actually run solr?
So we have to install Solr first, correct?
...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?
@main It is updated to latest.
I have the same problem before, but after update NodeBB and Solr plugin, it's gone. Have you updated all of that?
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 @[email protected]
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)