How to extract keywords or phrases used when users are performing a search in the GUI?

28 views
Skip to first unread message

euler

unread,
Dec 11, 2018, 10:21:13 PM12/11/18
to DSpace Technical Support
Dear All,

I would like to know how to extract the keywords or phrases that users are using when performing a search. I know that there exists a /statistics page with a "words search" section but it is just showing words individually and some of the entries are just collection and community IDs. Is this possible using SOLR query? I would like to extract this information without using 3rd party analytics like Piwik and Awstats.

I hope someone from the list have figured this out and I would be really grateful if you could share your methods. I am using DSpace 6.3 version by the way.

Thanks in advance and best regards,
euler

euler

unread,
Jan 21, 2020, 3:13:19 AM1/21/20
to DSpace Technical Support
Dear All,

After reading Terry's SOLR Tutorial [1], I finally came up with this SOLR query: http://localhost/solr/statistics/select?q=statistics_type%3Asearch*+AND+NOT(query%3A*_keyword*)+AND+NOT(query%3A*authority*)+AND+NOT(query%3A*type*)+AND+NOT(query%3Aauthor*)+AND+NOT(query%3A*subject*)+AND+NOT(query%3A"")&fq=time%3A%5B2019-01-01T00%3A00%3A00Z+TO+2020-01-01T00%3A00%3A00Z%5D&start=0&rows=0&wt=json&indent=true&facet=true&facet.field=query&facet.limit=20

I wonder if I applied the date range correctly. Also, I would like to ask if I should include the isBot:false filter query or is it redundant? I tried adding the isBot:false filter query and the figures are the same, I assumed unfaceted searches cannot be done by robots or crawlers?

Thanks,
Reply all
Reply to author
Forward
0 new messages