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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drunken monkey’s picture

Status: Active » Needs review

Patch 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?

kenorb’s picture

For 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.

drunken monkey’s picture

As said:

It seems in Solr 5 it's not even supported anymore to use a different Java server?

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.

tedfordgif’s picture

Status: Needs review » Needs work
FileSize
1.06 KB

I 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.

drunken monkey’s picture

Status: Needs work » Needs review
FileSize
6.15 KB

Ah, 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.

drunken monkey’s picture

Status: Needs review » Fixed

Completely 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 removed INSTALL.txt.

  • drunken monkey committed c30f824 on 7.x-1.x
    Issue #2466489 by drunken monkey: Changed installation instructions to...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.