Hi all,
out-of-box solr need to stay on the same server than the other dspace webapps
and the dspace webapps need to access it presenting itself with the IP address
127.0.0.1.
This is why localhost is used instead of the official dspace.url
If you want to move solr on another server it can be done but you need to hack
a bit the configuration:
1) you need to copy the [dspace-install]/solr folder in the new server, if can
also decide to put it in a different location. You should put in this folder
also the log4j-solr.properties file that you can find in [dspace-install]/conf
2) you need to disable the DSpace-SOLR build-in security filter that prevent
access from IP different than 127.0.0.1
3) you need to say to SOLR where it can find its solr-home (the folder at point
#1)
4) you need to secure the access to your SOLR allowing only the dspace webapps
server to access it
To do so, the easier way is to put a solr.xml context file in
[tomcat]/conf/Catalina/localhost (or the tomcat virtual host configuration
folder as appropriate) like that
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<!-- Default set of monitored resources. If one of these changes, the -->
<!-- web application will be reloaded. -->
<WatchedResource>WEB-INF/web.xml</WatchedResource>
<WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Parameter name="log4j.configuration"
value="[full-path-to-solr-folder#1]/log4j-solr.properties"
override="false"/>
<Parameter name="LocalHostRestrictionFilter.localhost"
value="false"
override="false"/>
<Environment name="solr/home" value="[full-path-to-solr-folder#1]"
type="java.lang.String" override="false"/>
<!-- see
https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Remote_Address_Filter
-->
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.\d+\.\d+\.\d+|::1|0:0:0:0:0:0:0:1|dspace\.webapps\.ip\.address"/>
</Context>
Hope this help,
Andrea Bollini
Il 22/08/2016 18:08, Hilton Gibson ha scritto:
Since SOLR is now the default "indexes" database, perhaps this will help:
http://wiki.lib.sun.ac.za/index.php/SUNScholar/Indexes
Hilton Gibson
Stellenbosch University Library
http://orcid.org/0000-0002-2992-208X
On 22 August 2016 at 17:16, Jeffrey A Trimble
<[email protected]<mailto:[email protected]>> wrote:
I’m really struggling with the Solr configurations for upgrading to 5.5.
Fortunately, I’ve got a test server to blow up. But before I do that, I need
to wrap my brain about this. Any assistance is welcome. So, listen on:
In the build.properties file, I have the following:
solr.server=http://localhost:8080/solr
Is this correct? Why would it not be something like
http://dspace.ysu.edu:8080/solr<http://something.something.eduL8080/solr> ?
How does one get to the statistics part of this since localhost limits you to
have to be on the server side? We work in virtualities here with AIX and there
is no web client on the server itself.
I am completely baffled by this. Since I learn visually, can someone explain
this to me better? I guess attempting to go from 1.6 to 5.5 is causing me a
few headaches and sleepless nights.
Thanks in advance,
Jeff
Jeffrey Trimble, MLS
William F. Maag Library
Youngstown State University
330.941.2483 (Office)
[email protected]<mailto:[email protected]>
http://www.maag.ysu.edu
http://digital.maag.ysu.edu
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To post to this group, send email to
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
[email protected]<mailto:[email protected]>.
To post to this group, send email to
[email protected]<mailto:[email protected]>.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
--
Andrea Bollini
Chief Technology and Innovation Officer
4Science, www.4science.it<http://www.4science.it>
office: Via Edoardo D'Onofrio 304, 00155 Roma, Italy
mobile: +39 333 934 1808
skype: a.bollini
linkedin: andreabollini
orcid: 0000-0002-9029-1854
an Itway Group Company
Italy, France, Spain, Portugal, Greece, Turkey, Lebanon, Qatar, U.A.Emirates
--
You received this message because you are subscribed to the Google Groups
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.