Is it possible to query solr for download statistics of a particular item
over a specified duration?
This is the query I've got so far:
wget
localhost:8080/solr/statistics/select?q=id:866+AND+type:0+AND+isBot:false+AND+time\:\[2013-01-01T00:00:00Z+TO+2014-01-01T00:00:00Z\]\&indent=on\&rows=1000
and this is the response:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">0</int>
<int name="QTime">0</int>
<lst name="params">
<str name="indent">on</str>
<str name="q">id:866 AND type:0 AND isBot:false AND
time:[2013-01-01T00:00:00Z TO 2014-01-01T00:00:00Z]</str>
<str name="rows">1000</str>
</lst>
</lst>
<result name="response" numFound="0" start="0">
</result>
</response>
If I look up item ID 866 in DSpace, it corresponds to handle: 10321/623
and http://dspace/handle/10321/623/statistics
shows 148 file visits to the only bitstream in that item over the past year.
I suspect my idea of an id is different to what solr and DSpace think, but
then what should I use in the query?
Sean
--
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech
List Etiquette: https://wiki.duraspace.org/display/DSPACE/Mailing+List+Etiquette