Hi Monika,
On 31/10/15 03:26, Monika Mevenkamp
wrote:
From the message below I understand that I will use
my solr stats if I upgrade from 1.8 to 5
Is that true ?
In most cases, you should be fine and should not lose any stats
data. There are two things that need to be done to the Solr indexes
for upgrading 1.8->5:
- Upgrade the file format on disk to one compatible with the
newer version of Solr included in DSpace 5.
- Re-index your usage statistics core to account for differences
in the Solr schema between DSpace 1.8 and DSpace 5. The
discovery core (if you're even using discovery in your 1.8
instance) will probably need to be re-indexed too, but that is
not an issue since the re-index can pull the information it
needs from elsewhere - ie, database and extracted fulltext
files. The usage statistics data is stored only in Solr, so the
situation is slightly different there.
For the first point, there is an auto-migration process in DSpace 5
that will automatically try and upgrade all your Solr indexes to
what DSpace 5 needs during the ant update step. Sean and George ran
into problems with this process it looks like, but it has worked
well for me for several DSpace instances and presumably for many
other folks too. So hopefully it will "just work" for you too. There
are some hints in the upgrade docs for troubleshooting some of the
problems:
https://wiki.duraspace.org/display/DSDOC5x/Upgrading+DSpace#UpgradingDSpace-ManuallyUpgradingSolrIndexes
For the second point, there is a reindex command in DSpace 5.3 that
you can use. It's documented here:
https://wiki.duraspace.org/display/DSDOC5x/SOLR+Statistics+Maintenance#SOLRStatisticsMaintenance-ReindexSOLRstatistics,forupgradesorwhenevertheSolrschemaforstatisticsischanged
(linked from the DSpace 5 upgrade instructions).
Obviously the usual rules apply, test your upgrade on a copy of your
data first, make sure you have current backups, etc.
If you're nervous about the process, I guess you could try and
backport / customise the code for step 2 and use it to export your
usage stats from 1.8 then import into 5.
https://github.com/DSpace/DSpace/blob/dspace-5_x/dspace-api/src/main/java/org/dspace/util/SolrImportExport.java
cheers,
Andrea
--
Dr Andrea Schweer
IRR Technical Specialist, ITS Information Systems
The University of Waikato, Hamilton, New Zealand
+64-7-837 9120
--
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 http://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.
|