On Mon, Feb 15, 2021 at 08:12:30AM -0800, Juan López wrote: > 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: > http://localhost:8080/solr/statistics/select?indent=on&rows=0&q=type:2+id:3c940477-1803-4b4e-a0a5-c69701b8c049&fq=-isBot:true&fq=-(bundleName:[2020-01-01+TO+2020-01-01]-bundleName:ORIGINAL)&fq=-(statistics_type:[2020-01-01+TO+2020-01-01]+-statistics_type:view)&wt=xml > > 2. without a date range: > > http://localhost:8080/solr/statistics/select?indent=on&rows=0&q=type:2+id:9673dfde-1ef1-4129-a3c0-088e8745f1a3&fq=-isBot:true&fq=-(bundleName:[*+TO+*]-bundleName:ORIGINAL)&fq=-(statistics_type:[*+TO+*]+-statistics_type:view)&wt=xml > > In both cases, solr shows the same amount of views for my item.
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 -- All messages to this mailing list should adhere to the DuraSpace Code of Conduct: https://duraspace.org/about/policies/code-of-conduct/ --- You received this message because you are subscribed to the Google Groups "DSpace Technical Support" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/dspace-tech/YC0iKL0fEY1hrptX%40IUPUI.Edu.
signature.asc
Description: PGP signature
