From 4bbbaa4af3108c427198ed5d7ddb6ae6cc92851d Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Fri, 18 Dec 2020 10:44:02 +0200 Subject: [PATCH] dspace_statistics_api/indexer.py: Use `fl` parameter I forgot to add the fl parameter to the downloads function. --- dspace_statistics_api/indexer.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dspace_statistics_api/indexer.py b/dspace_statistics_api/indexer.py index 3a1ae28..8427ccb 100644 --- a/dspace_statistics_api/indexer.py +++ b/dspace_statistics_api/indexer.py @@ -130,6 +130,7 @@ def index_downloads(): solr_query_params = { "q": "type:0", "fq": "-isBot:true AND statistics_type:view AND bundleName:ORIGINAL", + "fl": "owningItem", "facet": "true", "facet.field": "owningItem", "facet.mincount": 1, @@ -176,6 +177,7 @@ def index_downloads(): solr_query_params = { "q": "type:0", "fq": "-isBot:true AND statistics_type:view AND bundleName:ORIGINAL", + "fl": "owningItem", "facet": "true", "facet.field": "owningItem", "facet.mincount": 1,