1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-25 23:58:18 +01:00

dspace_statistics_api/indexer.py: Update comment

I don't remember why we needed the stats, but it seems that it was
because without them there is no way to know how many results were
returned and therefore no way to know how many pages we'll need to
iterate over. Having the total number allows us to use a limit and
and offset to page through them deterministically.
This commit is contained in:
Alan Orth 2020-09-25 13:25:34 +03:00
parent 6dbff1e78f
commit f58c209609
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9

View File

@ -40,7 +40,8 @@ def index_views():
# get total number of distinct facets for items with a minimum of 1 view, # get total number of distinct facets for items with a minimum of 1 view,
# otherwise Solr returns all kinds of weird ids that are actually not in # otherwise Solr returns all kinds of weird ids that are actually not in
# the database. Also, stats are expensive, but we need stats.calcdistinct # the database. Also, stats are expensive, but we need stats.calcdistinct
# so we can get the countDistinct summary. # so we can get the countDistinct summary to calculate how many pages of
# results we have.
# #
# see: https://lucene.apache.org/solr/guide/6_6/the-stats-component.html # see: https://lucene.apache.org/solr/guide/6_6/the-stats-component.html
solr_query_params = { solr_query_params = {