Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In #2442077: Support for Solr 5, we just added suitable config files for the newly released Solr 5. However, INSTALL.txt
doesn't yet reflect this.
In my opinion, we should probably just remove that file and just link to the handbook from README.txt
. And then we'd of course have to update the instructions there to also describe Solr 5.
Comment | File | Size | Author |
---|---|---|---|
#5 | 2466489-5--solr_5_install_instructions.patch | 6.15 KB | drunken monkey |
Comments
Comment #1
drunken monkeyPatch attached which would change the recommended example installation to Solr 5.
It seems in Solr 5 it's not even supported anymore to use a different Java server? That, though, leads to the problem that I have no idea how to secure the server now (unless you can block the ports on the OS level)? I could neither find information about how to add basic HTTP authentication, nor how to make Solr use a different base path than "/solr" in the URL. Does anyone have any ideas?
Comment #2
kenorb CreditAttribution: kenorb commentedFor Solr 4.x if you're using Tomcat, try the following method of adding basic HTTP authentication and the path is also can be controlled/changed from Tomcat (which is basically webapp name). For 5.x I guess it should be the same.
Comment #3
drunken monkeyAs said:
See, e.g., the Apache Solr wiki.
Unless I'm misunderstanding the note at the top, running Solr 5 on Tomcat is not supported. So, we'd need a solution with the server coming packaged with Solr.
Comment #4
tedfordgif CreditAttribution: tedfordgif commentedI found the following method to be effective: http://www.triquanta.nl/blog/solr-5-first-look. It uses the solr-5/server/etc/jetty.xml file to configure IP address restrictions. The attached patch is an example config.
Comment #5
drunken monkeyAh, great, thanks a lot! I'll add a reference to that to the instructions.
Oh, just realized I forgot to attach the patch in #1. Well, nevermind, here's the new one including the
IPAccessHandler
.Comment #6
drunken monkeyCompletely ignored my own advice in the first post to put the instructions into the handbook instead.
Fixed that, the instructions (for both Solr 4 and 5) can now be found here. Anyone who wants to improve them is welcome to do so!
Committed a slightly revised
README.txt
explaining this and removedINSTALL.txt
.