Difference between revisions of "SUNScholar/SOLR Statistics"
m (→Introduction) |
m (→Introduction) |
||
| Line 27: | Line 27: | ||
mkdir backup | mkdir backup | ||
| − | cp - | + | cp -Rv $HOME/solr/ $HOME/backup/ |
| + | |||
| + | sudo service tomcat7 start | ||
==[[SUNScholar/Statistics/5.X|For DSpace 5.X]]== | ==[[SUNScholar/Statistics/5.X|For DSpace 5.X]]== | ||
Revision as of 12:36, 3 June 2015
Back to Statistics
Contents
PLEASE NOTE:
New statistics fields were introduced in DSpace 4.X, therefore any upgrade from a DSpace version <= 3.X will not have these fields.
The lack of these new fields in statistics records from previous versions of DSpace, causes major errors when attempting to do statistics maintenance in DSpace versions => 4.X after an upgrade from a lower version of DSpace. See the link below for a possible fix.
https://gist.github.com/terrywbrady/82bd91b53ea4374b96e4
Because of this problem, we have moved to using Elastic Statistics instead, which seems to be more stable and provides download data not just visits and views.
The issue is being discussed on this wiki page: https://wiki.duraspace.org/display/DSPACE/DSpace+statistics+-+current+status+and+future+development
Also see the following about work to automatically fix old statistics databases.
- https://jira.duraspace.org/browse/DS-2486
- https://jira.duraspace.org/browse/DS-2541
- https://github.com/DSpace/DSpace/pull/905
Introduction
SOLR Statistics was introduced with DSpace =>1.6.2. SOLR statistics are now enabled by default for the XMLUI in DSpace versions =>3.2.
If you are upgrading, you need to backup the SOLR database before doing any new configuration.
Type the following to backup the SOLR DB: (If using Ubuntu 12.04 LTS, replace tomcat7 with tomcat6)
sudo service tomcat7 stop
mkdir backup
cp -Rv $HOME/solr/ $HOME/backup/
sudo service tomcat7 start