mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-02-10 04:02:59 +01:00
DSpace's stats-util script splits the Solr statistics core into yearly shards. We need to use Solr's `shards` query parameter in order to get the statistics for previous years. This commit adds a helper function to enumerate the active Solr cores to find yearly shards matching the statistics-YYYY pattern and add them to the query.