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

On Thursday, February 13, 2025 at 1:53:07 PM UTC-6 Joshua Kim wrote:

> 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? 
>
>
>
>
>
>
> On Thursday, February 13, 2025 at 12:22:03 PM UTC-5 Nicholas Woodward 
> wrote:
>
>> 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
>>
>>
>>
>> On Wednesday, February 12, 2025 at 8:57:08 AM UTC-6 Joshua Kim wrote:
>>
>>> 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?
>>>
>>>
>>>
>>>  
>>>
>>>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
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 dspace-tech+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/dspace-tech/d76f5e05-25dc-4338-992b-a6d13b1c05b6n%40googlegroups.com.

Reply via email to