Excellent, that's a really big help Terry!

So I've established that the hits are being recorded in my Solr index, they 
are just not being displayed in the GUI.

I should have mentioned:

DSpace 4.1
RHEL 7
Tomcat 7
Apache 2.2
JSPUI

Much appreciated,
Gary

On Wednesday, November 29, 2017 at 10:58:02 AM UTC+11, Terry Brady wrote:
>
> Gary,
>
> That is correct.  DSpace makes some attempt to filter out bot traffic.  
> When you look directly at the SOLR records, you may see some records with 
> an isBot field.
>
> To view the item counts, the following query will reveal those: type:2 AND 
> id:2924
>
> The bundle filter does not apply to the item records.  
>
> You can also query on owningComm and owningColl to compute aggregate 
> statistics for a collection or community.
>
> In case it is helpful, I have some PHP code that queries SOLR.  This code 
> has some examples of other useful SOLR queries: 
> https://github.com/Georgetown-University-Libraries/batch-tools/tree/master/web/stats
>
> On Tue, Nov 28, 2017 at 3:38 PM, Gary Browne <gary....@sydney.edu.au 
> <javascript:>> wrote:
>
>> Thanks Terry,
>>
>> So I'm assuming "bitstream views" equate to "dowloads"? If so, that gives 
>> me a figure more like what I would expect.
>>
>> And how would I get item view counts for this particular item?
>>
>> We haven't sharded our stats.
>>
>> Ta,
>> Gary
>>
>> On Wednesday, November 29, 2017 at 10:21:38 AM UTC+11, Terry Brady wrote:
>>>
>>> If you get the database id for the item, you can run the following query 
>>> from your SOLR console for the statistics repo.
>>>
>>> In DSpace 6, the id will be a UUID.  In DSpace 3-5, it will be an 
>>> integer.  2924 is being used in the sample query below.
>>>
>>> type:0 AND owningItem:2924 AND bundleName:ORIGINAL
>>>
>>> type:0 - restrict to bitstream views
>>> bundleName:ORIGINAL - exclude thumbnail views
>>>
>>> Have your statistics been sharded into different repos such as 
>>> statistics-2012?  If so, that requires an additional query parameter in the 
>>> solr console to view the older shards.
>>>
>>> On Tue, Nov 28, 2017 at 2:53 PM, Gary Browne <gary....@sydney.edu.au> 
>>> wrote:
>>>
>>>> Hi all,
>>>>
>>>>  
>>>>
>>>> I know there are more views and downloads on this item than are 
>>>> displaying in the browser:
>>>>
>>>>  
>>>>
>>>> https://ses.library.usyd.edu.au/handle/2123/17600/statistics
>>>>
>>>>  
>>>>
>>>> How can I query Solr directly to see if the correct figures are in the 
>>>> Solr index?
>>>>
>>>>  
>>>>
>>>> In the dspace logs I see this (among other view_item entries):
>>>>
>>>>  
>>>>
>>>> 2017-11-29 08:37:26,277 INFO  com.atmire.dspace.rest.StatletsResource @ 
>>>> Reading statlets(ids[]=[] handle=2123/17600)
>>>>
>>>>  
>>>>
>>>> As far as view entries, just from today I have:
>>>>
>>>>  
>>>>
>>>> $ grep 'view_item:handle=2123/17600' dspace.log.2017-11-29 | wc -l
>>>>
>>>> $ 318
>>>>
>>>>  
>>>>
>>>> Yet only 20 views display in the browser. I’ve run index-discovery and 
>>>> index-discovery –o again, but no change.
>>>>
>>>>  
>>>>
>>>> Any ideas?? The author is quite concerned about the lack of figures. 
>>>> There are no download figures on the stats page either.
>>>>
>>>>  
>>>>
>>>> Thanks a lot
>>>>
>>>> Gary
>>>>
>>>>  
>>>>
>>>> Gary Browne | Technical Manager, Developments
>>>> Online Services
>>>> University of Sydney Library
>>>> THE UNIVERSITY OF SYDNEY
>>>> Level 1, Fisher Library F03, The University of Sydney NSW 2006
>>>> T +61 2 9351 5946 | M +61 405 647 868
>>>> E gary.bro...@sydney.edu.au 
>>>> <https://webmail.sydney.edu.au/owa/redir.aspx?C=OXYu29eFmlOiJviVN3CHunM5oGoASVvNNYb-H0ZnmZGiO6bY9qPUCA..&URL=mailto%3agary.browne%40sydney.edu.au>
>>>> Sent from my plain old desktop computer
>>>>
>>>>  
>>>>
>>>> -- 
>>>> 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 dspace-tech...@googlegroups.com.
>>>> To post to this group, send email to dspac...@googlegroups.com.
>>>> Visit this group at https://groups.google.com/group/dspace-tech.
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Terry Brady
>>> Applications Programmer Analyst
>>> Georgetown University Library Information Technology
>>> https://github.com/terrywbrady/info
>>> 425-298-5498 (Seattle, WA)
>>>
>> -- 
>> 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 dspace-tech...@googlegroups.com <javascript:>.
>> To post to this group, send email to dspac...@googlegroups.com 
>> <javascript:>.
>> Visit this group at https://groups.google.com/group/dspace-tech.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Terry Brady
> Applications Programmer Analyst
> Georgetown University Library Information Technology
> https://github.com/terrywbrady/info
> 425-298-5498 (Seattle, WA)
>

-- 
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 dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Reply via email to