mirror of
https://github.com/ilri/dspace-statistics-api.git
synced 2024-11-22 06:15:02 +01:00
dspace_statistics_api/indexer.py: Use fl
parameter
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
I forgot to add the fl parameter to the downloads function.
This commit is contained in:
parent
7e4d5f4b13
commit
4bbbaa4af3
@ -130,6 +130,7 @@ def index_downloads():
|
|||||||
solr_query_params = {
|
solr_query_params = {
|
||||||
"q": "type:0",
|
"q": "type:0",
|
||||||
"fq": "-isBot:true AND statistics_type:view AND bundleName:ORIGINAL",
|
"fq": "-isBot:true AND statistics_type:view AND bundleName:ORIGINAL",
|
||||||
|
"fl": "owningItem",
|
||||||
"facet": "true",
|
"facet": "true",
|
||||||
"facet.field": "owningItem",
|
"facet.field": "owningItem",
|
||||||
"facet.mincount": 1,
|
"facet.mincount": 1,
|
||||||
@ -176,6 +177,7 @@ def index_downloads():
|
|||||||
solr_query_params = {
|
solr_query_params = {
|
||||||
"q": "type:0",
|
"q": "type:0",
|
||||||
"fq": "-isBot:true AND statistics_type:view AND bundleName:ORIGINAL",
|
"fq": "-isBot:true AND statistics_type:view AND bundleName:ORIGINAL",
|
||||||
|
"fl": "owningItem",
|
||||||
"facet": "true",
|
"facet": "true",
|
||||||
"facet.field": "owningItem",
|
"facet.field": "owningItem",
|
||||||
"facet.mincount": 1,
|
"facet.mincount": 1,
|
||||||
|
Loading…
Reference in New Issue
Block a user