Issue with Solr query

49 views
Skip to first unread message

Juan López

unread,
Feb 16, 2021, 10:45:10 AM2/16/21
to DSpace Technical Support
Hello everyone,

Hope you're doing well,

I'm having a little problem extracting the views and downloads from my items with solr. It seems that my solr is not taking any of the date that I throw at it, it prints the same if I do something like [2020-01-10 +TO + 2020-12-31] or [* + TO + *]

Heres the exact query's that I'm using: 

1. with a date range:

2. without a date range:


In both cases, solr shows the same amount of views for my item.

Am I missing something?

Best regards,

Juan

Mark H. Wood

unread,
Feb 17, 2021, 9:03:31 AM2/17/21
to dspac...@googlegroups.com
Filtering 'statistics_type' or 'bundleName' with a date range will not
work, since these fields doesn't contain dates. Try applying that
filter to the 'time' field instead:

http://localhost:8080/solr/statistics/select?indent=on&rows=0&q=type:2+id:3c940477-1803-4b4e-a0a5-c69701b8c049&fq=time:[2020-01-01+TO+2020-01-01]&fq=-isBot:true&fq=bundleName:ORIGINAL&fq=statistics_type:view&wt=xml

That may not be precisely the query that you intended, but it should
serve as a model.

--
Mark H. Wood
Lead Technology Analyst

University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu
signature.asc

Juan López

unread,
Feb 22, 2021, 3:08:19 PM2/22/21
to DSpace Technical Support

However, solr is showing "0" in the view count :

Captura de pantalla 2021-02-22 150604.png
As you can see, my solr didn't throw any error this time.

Could this issue be related with a missconfiguration or something similar?

Best regards,

Juan López

Juan López

unread,
Feb 26, 2021, 11:26:25 AM2/26/21
to DSpace Technical Support
Hi! 
I just found out that we have a splitted solr:

Captura de pantalla 2021-02-26 112532.png
How can I make a query to any of these splitted solr?

Best regards,

Juan

Juan López

unread,
Mar 1, 2021, 10:02:06 AM3/1/21
to DSpace Technical Support
Ok so to make my querys work all I had to do was change "statistics" for "statistics-xxxx" with "xxxx" being the year that I wanted to use for my query!

Thanks for your time and help Mark!

Reply all
Reply to author
Forward
0 new messages