Feel free to add that to Examples along with an explanation:

https://wiki.duraspace.org/display/DSPACE/Solr#Solr-Examples


Regards,
~~helix84

Compulsory reading: DSpace Mailing List Etiquette
https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette


On Fri, Jun 30, 2017 at 1:45 PM, Sean Carte <sean.ca...@gmail.com> wrote:
> Thanks, Ivan.
>
> This seems to work:
>
> /solr/statistics/select?q=type:0+owningItem:2961&fq=-isBot:true&fq=-(bundleName:[*+TO+*]-bundleName:ORIGINAL)&fq=-(statistics_type:[*+TO+*]+-statistics_type:view)&rows=0
>
> Sean
>
> On 30 June 2017 at 12:53, helix84 <heli...@centrum.sk> wrote:
>>
>> type:0 means you're asking about a bistream with id:2961, not about an
>> item.
>>
>>
>> https://github.com/DSpace/DSpace/blob/master/dspace-api/src/main/java/org/dspace/core/Constants.java
>>
>>
>> Regards,
>> ~~helix84
>>
>> Compulsory reading: DSpace Mailing List Etiquette
>> https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette
>>
>>
>>
>> On Fri, Jun 30, 2017 at 12:15 PM, Sean Carte <sean.ca...@gmail.com> wrote:
>> > Am I correct in thinking that a solr statistics query for type:0 will
>> > give
>> > me the number of downloads associated with a given id?
>> >
>> > /solr/statistics/select?q=type:0+id:2961+isBot:false
>> >
>> > If that's correct, then why if this item was only accessioned this
>> > month,
>> > without any associated files, do I get results when I search in shards:
>> >
>> >
>> > /solr/statistics/select?q=type:0+id:2961+isBot:false&shards=localhost:8080/solr/statistics-2013
>> >
>> > <response><lst name="responseHeader"><int name="status">0</int><int
>> > name="QTime">18</int><lst name="params"><str name="q">type:0 id:2961
>> > isBot:false</str><str
>> > name="shards">localhost:8080/solr/statistics-2013</str></lst></lst>
>> > <result name="response" numFound="5" start="0" maxScore="14.901278">
>> > <doc><str name="uid">87b05ac0-5c0b-4f02-b716-4b300435f048</str><str
>> > name="userAgent">Googlebot-Image/1.0</str><bool
>> > name="isBot">false</bool><int name="type">0</int><arr
>> > name="owningComm"><int>5</int></arr><str name="city">Beverly
>> > Hills</str><int
>> > name="id">2961</int><date
>> > name="time">2013-03-25T17:05:47.685Z</date><float
>> > name="longitude">-118.4143</float><str
>> > name="dns">crawl-66-249-75-211.googlebot.com.</str><str
>> > name="countryCode">US</str><arr name="owningColl"><int>7</int></arr><str
>> > name="ip">66.249.75.211</str><str name="statistics_type">view</str><str
>> > name="continent">NA</str><arr
>> > name="owningItem"><int>144</int></arr><float
>> > name="latitude">34.099503</float><arr
>> > name="bundleName"><str>THUMBNAIL</str></arr><long
>> > name="_version_">1522121173682356229</long></doc>
>> > ...
>> >
>> > Am I right in thinking that this means that Googlebot-Image downloaded a
>> > thumbnail associated with ID 2961 in 2013?
>> >
>> > Do IDs get reused? 2961 was only accessioned on 2017-06-14T14:28:43Z
>> >
>> > And a download of a thumbnail counts as a download when viewing solr
>> > stats?
>> >
>> > And Gooblebot-Image is not a bot?
>> >
>> > Is everything I thought I understood wrong?
>> >
>> > Sean
>> > --
>> >
>> > --
>> > 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.
>
>
>
>
> --
>

-- 
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