Problem of solr plugin
-
@sharonyue Boo Hiss!! Well, nothing obvious so looks like somebody smarter than me is requisite for this one. ;(
Hmm... one last thing. Here's a netstat from Centos:
tcp 0 0 127.0.0.1:4569 0.0.0.0:* LISTEN tcp6 0 0 :::22 :::* LISTEN tcp6 0 0 ::1:25 :::* LISTEN
The first one is ipv4 while the last two ipv6. From your netstat I am unsure if your solr is listening to ipv4, as those multiple colons tend point to ipv6.
That you can telnet localhost would indicate things should work but I've no clue what NodeBB may be doing internally w.r.t. that stuff, so maybe a possibility?
-
I checked my old server. It runs tomcat and a quite old solr version. Everything is fine.
I guess the solr plugin can be only used by combining tomcat+solr, or it is not compatible with latest solr? I am not sure.
@julian Do you have any comments on it?
-
After a very heavy work. Finally I made it work:
-
Ubuntu 18 enables ipv6 as default, please follow this instruction as written to disable it. link text
-
Download an old version of solr (I am using solr-5.3.0), I verified solr-8 does not work. Run it. Here is the settings:
It should be noted that I am not sure if the first step is necessary. Since I did it, but it does not work. Then I downgrade solr, it works.
Hope it helps the others, especially those who are using the latest Ubuntu and Solr. Have fun!!
-
-
@sharonyue Ha! Was suspicious of the ipv6 stuff. But seems likely more to do with plugin's Solr version compatibility. Would be nice if someone more knowledgeable than I could help tease this out.
In any event, glad you got it sorted! And now that you have, I would be interested in follow up reports as to Solr's effectiveness, especially compared and contrasted with NodeBB's builtin search. I am guessing you are preferring Solr due to better multilingual support?
Enjoy!
-
@gotwf Yes. My forum is in Chinese so I must use solr.
dbsearch
does not support Chinese as you know so I use solr. And I found the searching results is satisfactory. Why do you use solr? The drawback of solr is just it costs too much memory. But I can accept that. -