To have access of more then 10 "Search Term Statistics" in Dspace XMLUI v6.0

20 views
Skip to first unread message

cybert...@gmail.com

unread,
Oct 15, 2021, 2:19:07 PM10/15/21
to DSpace Technical Support
Hello Dspace Folks!
We have Dspace, XMLUI v 6.0.
We have this page with search statistics.
There is only the first 10 (ten) "Search Terms" that are shown.
Is it possible to see more results? aka is their a way, maybe a query, that can show more? 
Let's say just for us, the Repository Support Team, not the users.
Thanks for your Help!

Isabelle Laplante
Librarian
Centre de documentation collégiale
Montréal, Québec, Canada
Our Dspace : http://eduq.info 

euler

unread,
Oct 17, 2021, 11:12:20 PM10/17/21
to DSpace Technical Support
Hi Isabelle,

You need to access the SOLR webapp to access and run the query for this. Please see this link: https://wiki.lyrasis.org/display/DSPACE/Solr and here: https://github.com/terrywbrady/TutorialSolrAdmin/blob/master/PITCHME.md on how to access SOLR and run queries. For the "Search Term Statistics", to query for the top 20 search terms, this is the SOLR query that I'll use: https://localhost:8080/solr/statistics/select?facet=true&facet.limit=20&wt=json&rows=0&q=*:*&facet.field=query&fq=-isBot:true&fq=-(bundleName:%5B*+TO+*%5D-bundleName:ORIGINAL)&fq=statistics_type:search+AND+-page:%5B*+TO+*%5D&indent=true

Please note that some characters in the query were URL encoded (i.e. [ = %5B, ] = %5D) and I also added the parameters wt=json and indent=true for readability. To change the number of search results, just change the value of facet.limit to any arbitrary number that you would like to return. Please also note that the query will return unfaceted and faceted results (faceted is when a user clicked on the search filters). I also assumed that your statistics core was unsharded. You would need additional parameters if your statistics were sharded.

Hope this helps,
euler

Reply all
Reply to author
Forward
0 new messages