1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-12-23 13:04:39 +01:00
dspace-statistics-api/dspace_statistics_api
Alan Orth 40e284dac0
dspace_statistics_api/indexer.py: Query multiple shards
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.
2019-01-22 08:39:36 +02:00
..
docs Sync API documentation HTML with README.md 2018-11-01 00:37:52 +02:00
__init__.py Refactor project structure 2018-10-28 11:14:21 +02:00
app.py Refactor database code to use a context manager 2018-11-07 17:41:21 +02:00
config.py Allow configuration of PostgreSQL port 2018-11-03 22:40:45 +02:00
database.py dspace_statistics_api/database.py: Raise HTTP 500 on error 2018-11-10 23:58:58 +02:00
indexer.py dspace_statistics_api/indexer.py: Query multiple shards 2019-01-22 08:39:36 +02:00
solr.py Correct issues highlighted by Flake8 2018-11-04 00:04:27 +02:00