Solr: top downloads for a collection during time-frame

26 views
Skip to first unread message

Sean Carte

unread,
Dec 9, 2021, 3:41:01 AM12/9/21
to DSpace Technical Support
How can I get a list of top downloads for a collection during a specified time period from solr?

It looks like I should be able to modify the example query in the documentation at https://wiki.lyrasis.org/display/DSDOC5x/SOLR+Statistics to do what I want, but I don't know what to use as a facet.field, nor even if this should work. This is my attempt, but it doesn't seem to produce a different result to the original, which uses 'epersonid' as the facet.field:

/solr/statistics/select?indent=on&version=2.2&start=0&rows=10&fl=*%2Cscore&qt=standard&wt=standard&explainOther=&hl.fl=&facet=true&facet.field=itemid&q=type:0+owningColl:9+isBot:false+time:[2021-01-01T00:00:00Z+TO+2021-11-30T00:00:00Z]

Sean
DSpace version:  CRIS-5.10.0-SNAPSHOT
  SCM revision:  67e7d010e7eda86925980b2a43581b9d4f4929a3
    SCM branch:  dspace-5_x_x-cris
            OS:  Linux(amd64) version 4.4.0-210-generic
  Applications:
     Discovery:  enabled.
           JRE:  Private Build version 1.8.0_292
   Ant version:  Apache Ant(TM) version 1.9.6 compiled on July 20 2018
 Maven version:  3.3.9
Reply all
Reply to author
Forward
0 new messages