Hello,

We need to find the total download count for a top level community that has 
several sub-communities and collections.  For now, just getting the answer is 
good enough.  Adding it to the interface can come later.  We are using DSpace 
1.6, so my thought was to use the SOLR admin interface and construct a query to 
get the answer.  However, I'm not confident that I understand how the query 
should look.

Of the fields we have to work with, the promising ones looked to be type, 
owningComm, owningItem.  Trial and error shows that owningComm returns multiple 
results, so I'm guessing it regresses back to the top most collection.  To 
separate item views from downloads, it looks like a might be able to use the 
type field, but I have no idea how to translate the type number.  From 
observation it looks like a type=2 might mean an item view and a type=0 might 
be a download.  The other possibility to separate item views from downloads 
would be to check for the existences of an owningItem.  Item views appear to 
lack this (which only makes sense).

If the above is correct, I'm thinking a query string such as [ owningComm:1 AND 
type:0 ] should give us what we need.  But before reporting this, it would be 
nice to know for sure.  Could someone confirm this or point me to documentation 
that would help explain the different fields in the SOLR index.

Thanks!

Andy Smith
Lead Technology Analysis
IUPUI University Library
[email protected]
(317) 274-0482

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
DSpace-tech mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to