Not showing the number of visits on last year

52 views
Skip to first unread message

Joshua Kim

unread,
Feb 12, 2025, 9:57:08 AM2/12/25
to DSpace Technical Support
Hello,

We use DSpace 7.x. In the statistics section, an item shows the number of visits from only this year (2025), but not last year. I am new to the Statistics function. Can you guide me on how to display the number of visits last year, too?



 

udspace1.jpg

Nicholas Woodward

unread,
Feb 13, 2025, 12:22:03 PM2/13/25
to DSpace Technical Support
Hello Joshua,
The time period to display statistics for DSpace objects is currently not configurable. Only the previous six months plus the current month of statistics are displayed. There is a pull request open to add the option to include additional months of statistics (https://github.com/DSpace/DSpace/pull/10142), but it has not been included in the DSpace codebase yet. If you or someone at your institution could test the pull request that would help to make it available in a future version of DSpace.

Thanks,
Nick

Joshua Kim

unread,
Feb 13, 2025, 2:53:07 PM2/13/25
to DSpace Technical Support
Thank you, Nick. I will test the pull request. 
I also found one interesting thing. After moving solr default directory from /opt to /home/solr/data because of space issues, it looks like on Jan 1 every year, the statistics roll as below.

0 drwxr-xr-x 6 solr solr   66 Nov  7  2022 configsets
0 drwxr-xr-x 2 solr solr    6 Oct 25  2022 filestore
4 -rw-r----- 1 solr solr 2427 Oct 25  2022 solr.xml
0 drwxr-xr-x 3 solr solr   41 Jan  1 2024 statistics-2023
0 drwxr-xr-x 3 solr solr   41 Jan  1 02:00 statistics-2024
0 drwxr-xr-x 2 solr solr    6 Oct 25  2022 userfiles
4 -rw-r----- 1 solr solr 1048 Oct 25  2022 zoo.cfg

Is this the way how solr stores the previous year's data? Or Is there misconfiguration as we moved to another directory (instead of using the default directory)? How can I let solr know the statistics-2024 data OR how can I combine the data of statistics-2024 to current solr under configsets/data/index folder? How can I show the hits of five months in 2024 and two months this year? 

Nicholas Woodward

unread,
Feb 17, 2025, 12:28:17 PM2/17/25
to DSpace Technical Support
Hi Joshua,
In DSpace 6 and earlier versions the statistics core was broken up into shards once a year on January 1st, so the previous year's statistics would be stored separately. As far as I know, that sharding functionality is not available in DSpace 7, or at least we've never used it. In order to move all of our previous years' statistics into the single "statistics" core in DSpace 7 we had to export and then import them using the DSpace commands for stats maintenance: https://wiki.lyrasis.org/display/DSDOC7x/SOLR+Statistics+Maintenance

Nick

Reply all
Reply to author
Forward
0 new messages