mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2025-03-06 23:37:23 +01:00
The logic to get views and downloads is very similar to that used for items, but we facet by different fields. This uses a generic function for indexing that takes an "indexType" and a "facetField" parameter. The indexType parameter controls which database table to insert into, and the facetField parameter indicates which field to facet by in Solr.