Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. DSpace Configuration for Accessing Solr. In the dspace.cfg file review the following fields to make sure they are uncommented:
    Code Block
    solr.log.server = ${dspace.baseUrl}/solr/statistics
    solr.dbfile = ${dspace.dir}/config/GeoLiteCity.dat
    solr.spiderips.urls = http://iplists.com/google.txt, \
                          http://iplists.com/inktomi.txt, \
                          http://iplists.com/lycos.txt, \
                          http://iplists.com/infoseek.txt, \
                          http://iplists.com/altavista.txt, \
                          http://iplists.com/excite.txt, \
                          http://iplists.com/misc.txt, \
                          http://iplists.com/non_engines.txt
  2. DSpace logging configuration for Solr. If your DSpace instance is protected by a proxy server, in order for Solr to log the correct IP address of the user rather than of the proxy, it must be configured to look for the X-Forwarded-For header.  This feature can be enbled enabled by ensuring the following setting is uncommented in the logging section of dspace.cfg:
    Code Block
    useProxies = true
  3. DSpace configuration for fields indexed into Solr Event records for search. In the dspace.cfg file, review the following property keys to make sure they are uncommented:
    Code Block
    statistics.items.dc.1=dc.identifier
    statistics.items.dc.2=dc.date.accessioned
    statistics.items.type.1=dcinput
    statistics.items.type.2=date
    statistics.default.start.datepick = 01/01/1977
  4. Configuration Control. In the dspace.cfg set the following property key:_statistics.item.authorization.admin=true_This will require the user to sign on to see that statistics. Setting the statistics to "false" will make them publicly available. 
  5. Final steps. 
    • Perform the following step:¬†
      Code Block
      cd [dspace-source]/dspace
      mvn package
      cd [dspace-source]/dspace/target/dspace-<version>-build.dir
      ant -Dconfig=[dspace]/config/dspace.cfg update
      cp -R [dspace]/webapps/* [TOMCAT]/webapps
      
      Wiki Markup
      If you only need to build the statistics, and don't make any changes to other web applications, you can replace the copy step above with: _cp \-R \[dspace\]/webapps/solr \[TOMCAT\]/webapps_
    • Restart your webapps (Tomcat/Jetty/Resin)¬†

...